Update app.py
Browse files
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"
|
| 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())
|