Devsora commited on
Commit
b2a73ce
·
1 Parent(s): c7888bc

adjust default

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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=512, label="Width")
104
- height_input = gr.Number(value=512, label="Height")
105
- guidance_scale_input = gr.Number(value=7.5, label="Guidance Scale")
106
- num_inference_steps_input = gr.Number(value=50, label="Number of Inference Steps")
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(