mkthoma commited on
Commit
a36d50f
·
1 Parent(s): 147275f

code update

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -283,7 +283,7 @@ def image_generator_wrapper(prompt = "dog", loss_function=None):
283
  description = "Generate an image with a prompt and apply loss if you wish to"
284
 
285
  demo = gr.Interface(image_generator_wrapper,
286
- inputs=[gr.Textbox(label="Enter prompt for generating", type="str", default="dog sitting on a bench"),
287
  gr.Radio(["Yes", "No"], value="No" , label="Apply vibrance loss")],
288
- outputs=gr.Plot(), title = "Stable Diffusion", description=description)
289
  demo.launch()
 
283
  description = "Generate an image with a prompt and apply loss if you wish to"
284
 
285
  demo = gr.Interface(image_generator_wrapper,
286
+ inputs=[gr.Textbox(label="Enter prompt for generating", type="text", default="dog sitting on a bench"),
287
  gr.Radio(["Yes", "No"], value="No" , label="Apply vibrance loss")],
288
+ outputs=gr.Plot(label="Outputs"), title = "Stable Diffusion", description=description)
289
  demo.launch()