salomonsky commited on
Commit
4982a7b
verified
1 Parent(s): 6bd865c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -84,24 +84,24 @@ with gr.Blocks(css=css, theme="Nymbo/Nymbo_Theme") as demo:
84
  with gr.Column(scale=2):
85
  prompt = gr.Textbox(label="Descripci贸n de im谩gen")
86
  basemodel_choice = gr.Dropdown(label="Modelo", choices=["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-DEV"], value="black-forest-labs/FLUX.1-schnell")
87
- lora_model_choice = gr.Dropdown(label="LORA Realismo", choices=["Shakker-Labs/FLUX.1-dev-LoRA-add-details", "XLabs-AI/flux-RealismLora"], value="XLabs-AI/flux-RealismLora")
88
  process_lora = gr.Checkbox(label="Procesar LORA")
89
  process_upscale = gr.Checkbox(label="Procesar Escalador")
90
  upscale_factor = gr.Radio(label="Factor de Escala", choices=[2, 4, 8], value=2)
91
  upscale_model = gr.Radio(label="Modelo de Escalado", choices=["GPFGAN", "Finegrain"], value="GPFGAN")
92
-
93
  with gr.Accordion(label="Opciones Avanzadas", open=False):
94
- width = gr.Slider(label="Ancho", minimum=512, maximum=1280, step=8, value=512)
95
- height = gr.Slider(label="Alto", minimum=512, maximum=1280, step=8, value=512)
96
- scales = gr.Slider(label="Escalado", minimum=1, maximum=20, step=1, value=10)
97
- steps = gr.Slider(label="Pasos", minimum=1, maximum=100, step=1, value=20)
98
- seed = gr.Number(label="Semilla", value=-1)
99
-
100
- btn = gr.Button("Generar")
101
- btn.click(
102
- fn=gen,
103
- inputs=[prompt, basemodel_choice, width, height, scales, steps, seed, upscale_factor, process_upscale, lora_model_choice, process_lora, upscale_model],
104
- outputs=output_res,
105
- )
106
 
107
  demo.launch()
 
84
  with gr.Column(scale=2):
85
  prompt = gr.Textbox(label="Descripci贸n de im谩gen")
86
  basemodel_choice = gr.Dropdown(label="Modelo", choices=["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-DEV"], value="black-forest-labs/FLUX.1-schnell")
87
+ lora_model_choice = gr.Dropdown(label="LORA Realismo", choices=["Shakker-Labs/FLUX.1-dev-LoRA-add-details", "XLabs-AI/flux-RealismLora"], value="XLabs-AI/flux-RealismLora")
88
  process_lora = gr.Checkbox(label="Procesar LORA")
89
  process_upscale = gr.Checkbox(label="Procesar Escalador")
90
  upscale_factor = gr.Radio(label="Factor de Escala", choices=[2, 4, 8], value=2)
91
  upscale_model = gr.Radio(label="Modelo de Escalado", choices=["GPFGAN", "Finegrain"], value="GPFGAN")
92
+
93
  with gr.Accordion(label="Opciones Avanzadas", open=False):
94
+ width = gr.Slider(label="Ancho", minimum=512, maximum=1280, step=8, value=512)
95
+ height = gr.Slider(label="Alto", minimum=512, maximum=1280, step=8, value=512)
96
+ scales = gr.Slider(label="Escalado", minimum=1, maximum=20, step=1, value=10)
97
+ steps = gr.Slider(label="Pasos", minimum=1, maximum=100, step=1, value=20)
98
+ seed = gr.Number(label="Semilla", value=-1)
99
+
100
+ btn = gr.Button("Generar")
101
+ btn.click(
102
+ fn=gen,
103
+ inputs=[prompt, basemodel_choice, width, height, scales, steps, seed, upscale_factor, process_upscale, lora_model_choice, process_lora, upscale_model,],
104
+ outputs=output_res,
105
+ )
106
 
107
  demo.launch()