Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
<
|
25 |
-
|
|
|
|
|
|
|
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(
|
40 |
-
image_output2 = gr.Image(
|
41 |
|
42 |
with gr.Column():
|
43 |
-
image_output3 = gr.Image(
|
44 |
-
image_output4 = gr.Image(
|
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 |
|