Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,12 +89,12 @@ with gr.Blocks(theme=gr.themes.Base(), css="body {background-color: #f9fafb;}")
|
|
| 89 |
generate_btn = gr.Button("🚀 Generate Image", variant="primary")
|
| 90 |
output_image = gr.Image(type="filepath", label="🖼️ Generated Image", height=512)
|
| 91 |
|
| 92 |
-
|
| 93 |
fn=generate,
|
| 94 |
inputs=[prompt_input, width_input, height_input, steps_input, seed_input, negative_input],
|
| 95 |
outputs=output_image
|
| 96 |
)
|
| 97 |
|
| 98 |
|
| 99 |
-
if __name__ == "__main__":
|
| 100 |
-
|
|
|
|
| 89 |
generate_btn = gr.Button("🚀 Generate Image", variant="primary")
|
| 90 |
output_image = gr.Image(type="filepath", label="🖼️ Generated Image", height=512)
|
| 91 |
|
| 92 |
+
generate_btn.click(
|
| 93 |
fn=generate,
|
| 94 |
inputs=[prompt_input, width_input, height_input, steps_input, seed_input, negative_input],
|
| 95 |
outputs=output_image
|
| 96 |
)
|
| 97 |
|
| 98 |
|
| 99 |
+
# if __name__ == "__main__":
|
| 100 |
+
demo.launch(mcp_server=True, share=False)
|