adjust default
Browse files
app.py
CHANGED
@@ -100,10 +100,10 @@ def gradio_generate(model_type, prompt, negative_prompt, width, height, guidance
|
|
100 |
model_type_input = gr.Dropdown(choices=["character", "item"], value="character", label="Model Type")
|
101 |
prompt_input = gr.Textbox(lines=2, placeholder="Digite o prompt (deixe vazio para o padrão)", label="Prompt")
|
102 |
negative_prompt_input = gr.Textbox(lines=2, placeholder="Digite o negative prompt (deixe vazio para o padrão)", label="Negative Prompt")
|
103 |
-
width_input = gr.Number(value=
|
104 |
-
height_input = gr.Number(value=
|
105 |
-
guidance_scale_input = gr.Number(value=
|
106 |
-
num_inference_steps_input = gr.Number(value=
|
107 |
|
108 |
# Criação da interface Gradio
|
109 |
iface = gr.Interface(
|
|
|
100 |
model_type_input = gr.Dropdown(choices=["character", "item"], value="character", label="Model Type")
|
101 |
prompt_input = gr.Textbox(lines=2, placeholder="Digite o prompt (deixe vazio para o padrão)", label="Prompt")
|
102 |
negative_prompt_input = gr.Textbox(lines=2, placeholder="Digite o negative prompt (deixe vazio para o padrão)", label="Negative Prompt")
|
103 |
+
width_input = gr.Number(value=832, label="Width")
|
104 |
+
height_input = gr.Number(value=1216, label="Height")
|
105 |
+
guidance_scale_input = gr.Number(value=10.0, label="Guidance Scale")
|
106 |
+
num_inference_steps_input = gr.Number(value=100, label="Number of Inference Steps")
|
107 |
|
108 |
# Criação da interface Gradio
|
109 |
iface = gr.Interface(
|