ritwik098 commited on
Commit
b6008a1
·
verified ·
1 Parent(s): 0ba0a03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- demo = 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)
 
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)