VinayHajare commited on
Commit
ec5c3a9
·
verified ·
1 Parent(s): fa96828

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -16
app.py CHANGED
@@ -11,18 +11,21 @@ from inference import generate_image_from_text, generate_image_from_text_with_pe
11
  css = read_css_from_file("style.css")
12
 
13
  DESCRIPTION = '''
14
- <div id="content_align">
15
- <span style="color:darkred;font-size:32px:font-weight:bold">
16
- EfficientCLIP-GAN Models Image Generation Demo
17
- </span>
18
- </div>
19
- <div id="content_align">
20
- <span style="color:blue;font-size:16px:font-weight:bold">
21
- Generate images directly from text prompts
22
- </span>
23
- </div>
24
- <div id="content_align" style="margin-top: 10px;">
25
- </div>
 
 
 
26
  '''
27
 
28
  # Creating Gradio interface
@@ -36,12 +39,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
 
 
11
  css = read_css_from_file("style.css")
12
 
13
  DESCRIPTION = '''
14
+ <div id="content_align">
15
+ <span style="color:darkred;font-size:32px;font-weight:bold">
16
+ WordCraft : Visuals from Verbs
17
+ </span>
18
+ </div>
19
+ <div id="content_align">
20
+ <span style="color:blue;font-size:16px;font-weight:bold">
21
+ A small, lightining fast efficient AI image generator. <br><br>
22
+ 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
 
31
  # Creating Gradio interface
 
39
 
40
  with gr.Row():
41
  with gr.Column():
42
+ image_output1 = gr.Image(label="Generated Image 1")
43
+ image_output2 = gr.Image(label="Generated Image 2")
44
 
45
  with gr.Column():
46
+ image_output3 = gr.Image(label="Generated Image 3")
47
+ image_output4 = gr.Image(label="Generated Image 4")
48
 
49
  generate_button.click(generate_image_from_text, inputs=[text_prompt], outputs=[image_output1, image_output2, image_output3, image_output4])
50