VinayHajare commited on
Commit
d1fd670
Β·
verified Β·
1 Parent(s): fb5d9d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -27,7 +27,7 @@ DESCRIPTION = '''
27
 
28
  # Creating Gradio interface
29
  with gr.Blocks(css=css) as app:
30
- gr.Warning("This πŸ’» demo uses the EfficientCLIP-GAN model which is trained on CUB dataset 🐦πŸ₯.\nKeep your prompt coherent to the birds domain.\nIf you like the demo, don't forget to click on the like πŸ’– button.")
31
  gr.Markdown(DESCRIPTION)
32
  with gr.Row():
33
  with gr.Column():
@@ -36,12 +36,12 @@ with gr.Blocks(css=css) as app:
36
 
37
  with gr.Row():
38
  with gr.Column():
39
- image_output1 = gr.Image(type="pil", format = "jpeg", label="Generated Image 1")
40
- image_output2 = gr.Image(type="pil", format = "jpeg", label="Generated Image 2")
41
 
42
  with gr.Column():
43
- image_output3 = gr.Image(type="pil", format = "jpeg", label="Generated Image 3")
44
- image_output4 = gr.Image(type="pil", format = "jpeg", label="Generated Image 4")
45
 
46
  generate_button.click(generate_image_from_text, inputs=[text_prompt], outputs=[image_output1, image_output2, image_output3, image_output4])
47
 
 
27
 
28
  # Creating Gradio interface
29
  with gr.Blocks(css=css) as app:
30
+ gr.Info("This πŸ’» demo uses the EfficientCLIP-GAN model which is trained on CUB dataset 🐦πŸ₯.\nKeep your prompt coherent to the birds domain.\nIf you like the demo, don't forget to click on the like πŸ’– button.")
31
  gr.Markdown(DESCRIPTION)
32
  with gr.Row():
33
  with gr.Column():
 
36
 
37
  with gr.Row():
38
  with gr.Column():
39
+ image_output1 = gr.Image(type="pil", format = "png", label="Generated Image 1")
40
+ image_output2 = gr.Image(type="pil", format = "png", label="Generated Image 2")
41
 
42
  with gr.Column():
43
+ image_output3 = gr.Image(type="pil", format = "png", label="Generated Image 3")
44
+ image_output4 = gr.Image(type="pil", format = "png", label="Generated Image 4")
45
 
46
  generate_button.click(generate_image_from_text, inputs=[text_prompt], outputs=[image_output1, image_output2, image_output3, image_output4])
47