dtometzki commited on
Commit
dc2d25b
·
verified ·
1 Parent(s): f0d49ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def generate_image(prompt, model_name, steps, cfg_scale, width, height):
50
  raise gr.Error(f"Fehler bei '{model_name}': {str(e)}")
51
 
52
  # --- UI Aufbau ---
53
- with gr.Blocks(title="Custom Model Gen", theme=gr.themes.Base()) as demo:
54
  gr.Markdown("## ⚡ Custom Model Generator")
55
 
56
  with gr.Row():
@@ -109,4 +109,4 @@ with gr.Blocks(title="Custom Model Gen", theme=gr.themes.Base()) as demo:
109
  run_btn.click(fn=generate_image, inputs=inputs, outputs=result_output)
110
 
111
  if __name__ == "__main__":
112
- demo.launch()
 
50
  raise gr.Error(f"Fehler bei '{model_name}': {str(e)}")
51
 
52
  # --- UI Aufbau ---
53
+ with gr.Blocks(title="Custom Model Gen") as demo:
54
  gr.Markdown("## ⚡ Custom Model Generator")
55
 
56
  with gr.Row():
 
109
  run_btn.click(fn=generate_image, inputs=inputs, outputs=result_output)
110
 
111
  if __name__ == "__main__":
112
+ demo.launch(theme=gr.themes.Base())