Spaces:
Runtime error
Runtime error
chenjian
commited on
Commit
•
a419838
1
Parent(s):
b194067
optimize demo presentation
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ with block:
|
|
157 |
</div>
|
158 |
<p style="margin-bottom: 10px; font-size: 94%">
|
159 |
ERNIE-ViLG is a state-of-the-art text-to-image model that generates
|
160 |
-
images from text.
|
161 |
</p>
|
162 |
</div>
|
163 |
"""
|
@@ -169,7 +169,7 @@ with block:
|
|
169 |
label="Prompt (Chinese)",
|
170 |
show_label=False,
|
171 |
max_lines=1,
|
172 |
-
placeholder="Enter your prompt",
|
173 |
).style(
|
174 |
border=(True, False, True, True),
|
175 |
rounded=(True, False, False, True),
|
@@ -202,11 +202,11 @@ with block:
|
|
202 |
</p>
|
203 |
</div>
|
204 |
<div class="footer">
|
205 |
-
<p>Model by
|
206 |
</p>
|
207 |
</div>
|
208 |
|
209 |
"""
|
210 |
)
|
211 |
|
212 |
-
block.queue(max_size=
|
|
|
157 |
</div>
|
158 |
<p style="margin-bottom: 10px; font-size: 94%">
|
159 |
ERNIE-ViLG is a state-of-the-art text-to-image model that generates
|
160 |
+
images from Chinese text.
|
161 |
</p>
|
162 |
</div>
|
163 |
"""
|
|
|
169 |
label="Prompt (Chinese)",
|
170 |
show_label=False,
|
171 |
max_lines=1,
|
172 |
+
placeholder="Enter your Chinese prompt",
|
173 |
).style(
|
174 |
border=(True, False, True, True),
|
175 |
rounded=(True, False, False, True),
|
|
|
202 |
</p>
|
203 |
</div>
|
204 |
<div class="footer">
|
205 |
+
<p>Model by <a href="https://wenxin.baidu.com" style="text-decoration: underline;" target="_blank">文心大模型</a> and <a href="https://github.com/PaddlePaddle/PaddleHub" style="text-decoration: underline;" target="_blank">PaddleHub</a> - Gradio Demo by 🤗 Hugging Face
|
206 |
</p>
|
207 |
</div>
|
208 |
|
209 |
"""
|
210 |
)
|
211 |
|
212 |
+
block.queue(max_size=20).launch()
|