Merge branch 'dev'

This commit is contained in:
oobabooga 2023-07-30 08:47:50 -07:00
commit c25602eb65
3 changed files with 10 additions and 6 deletions

View File

@ -111,14 +111,16 @@ functions are declared in the same order that they are called at
generation time.
"""
import gradio as gr
import torch
from modules import chat
from transformers import LogitsProcessor
from modules import chat, shared
from modules.text_generation import (
decode,
encode,
generate_reply,
)
from transformers import LogitsProcessor
params = {
"display_name": "Example Extension",

View File

@ -7,14 +7,16 @@ functions are declared in the same order that they are called at
generation time.
"""
import gradio as gr
import torch
from modules import chat
from transformers import LogitsProcessor
from modules import chat, shared
from modules.text_generation import (
decode,
encode,
generate_reply,
)
from transformers import LogitsProcessor
params = {
"display_name": "Example Extension",

View File

@ -332,8 +332,8 @@ def ui():
negative_prompt = gr.Textbox(placeholder=params['negative_prompt'], value=params['negative_prompt'], label='Negative Prompt')
with gr.Row():
with gr.Column():
width = gr.Slider(256, 768, value=params['width'], step=64, label='Width')
height = gr.Slider(256, 768, value=params['height'], step=64, label='Height')
width = gr.Slider(64, 2048, value=params['width'], step=64, label='Width')
height = gr.Slider(64, 2048, value=params['height'], step=64, label='Height')
with gr.Column(variant="compact", elem_id="sampler_col"):
with gr.Row(elem_id="sampler_row"):
sampler_name = gr.Dropdown(value=params['sampler_name'], label='Sampling method', elem_id="sampler_box")