VinayHajare commited on
Commit
76ea4b9
·
verified ·
1 Parent(s): b09e41b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -12
app.py CHANGED
@@ -19,28 +19,22 @@ DESCRIPTION = '''
19
  <div id="content_align">
20
  <span style="color:blue;font-size:16px;font-weight:bold">
21
  <br>A small, lightining fast efficient AI image generator
22
- <br>This 💻 demo uses the EfficientCLIP-GAN model which is trained on CUB dataset🐦🐥.
23
- <br>Keep your prompt coherent to the birds domain.
24
- <br>If you like the demo, don't forget to click on the like 💖 button.
25
  </span>
26
  </div>
27
  <div id="content_align" style="margin-top: 10px;">
 
 
 
28
  </div>
29
  '''
30
- def greet():
31
- 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.")
32
- greeted = True
33
-
34
  # Creating Gradio interface
35
  with gr.Blocks(css=css) as app:
36
- if(not greeted):
37
- greet()
38
-
39
  gr.Markdown(DESCRIPTION)
40
  with gr.Row():
41
  with gr.Column():
42
- text_prompt = gr.Textbox(label="Input Prompt", placeholder="", lines=3)
43
- generate_button = gr.Button("Generate Image", variant='primary')
44
 
45
  with gr.Row():
46
  with gr.Column():
 
19
  <div id="content_align">
20
  <span style="color:blue;font-size:16px;font-weight:bold">
21
  <br>A small, lightining fast efficient AI image generator
 
 
 
22
  </span>
23
  </div>
24
  <div id="content_align" style="margin-top: 10px;">
25
+ <br>This 💻 demo uses the EfficientCLIP-GAN model which is trained on CUB dataset🐦🐥.
26
+ <br>Keep your prompt coherent to the birds domain.
27
+ <br>If you like the demo, don't forget to click on the like 💖 button.
28
  </div>
29
  '''
30
+
 
 
 
31
  # Creating Gradio interface
32
  with gr.Blocks(css=css) as app:
 
 
 
33
  gr.Markdown(DESCRIPTION)
34
  with gr.Row():
35
  with gr.Column():
36
+ text_prompt = gr.Textbox(label="Input Prompt", value="this tiny bird has a very small bill, a belly covered with white delicate feathers and has a set of black rounded eyes.", lines=3)
37
+ generate_button = gr.Button("Generate Images", variant='primary')
38
 
39
  with gr.Row():
40
  with gr.Column():