VinayHajare commited on
Commit
e14bd4d
·
verified ·
1 Parent(s): 3fef7c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -6,6 +6,7 @@ from PIL import Image
6
 
7
  from utils import read_css_from_file
8
  from inference import generate_image_from_text, generate_image_from_text_with_persistent_storage
 
9
  # Read CSS from file
10
  css = read_css_from_file("style.css")
11
 
@@ -35,12 +36,12 @@ with gr.Blocks(css=css) as app:
35
 
36
  with gr.Row():
37
  with gr.Column():
38
- image_output1 = gr.Image(type="pil", label="Image Output 1")
39
- image_output2 = gr.Image(type="pil", label="Image Output 2")
40
 
41
  with gr.Column():
42
- image_output3 = gr.Image(type="pil", label="Image Output 3")
43
- image_output4 = gr.Image(type="pil", label="Image Output 4")
44
 
45
  generate_button.click(generate_image_from_text, inputs=[text_prompt], outputs=[image_output1, image_output2, image_output3, image_output4])
46
 
 
6
 
7
  from utils import read_css_from_file
8
  from inference import generate_image_from_text, generate_image_from_text_with_persistent_storage
9
+
10
  # Read CSS from file
11
  css = read_css_from_file("style.css")
12
 
 
36
 
37
  with gr.Row():
38
  with gr.Column():
39
+ image_output1 = gr.Image(type="pil", label="Generated Image 1")
40
+ image_output2 = gr.Image(type="pil", label="Generated Image 2")
41
 
42
  with gr.Column():
43
+ image_output3 = gr.Image(type="pil", label="Generated Image 3")
44
+ image_output4 = gr.Image(type="pil", 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