Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ examples = [
|
|
61 |
|
62 |
with block:
|
63 |
gr.HTML(read_content("header.html"))
|
64 |
-
gr.Markdown(">
|
65 |
gr.Markdown("[![Stargazers repo roster for @PaddlePaddle/PaddleNLP](https://reporoster.com/stars/PaddlePaddle/PaddleNLP)](https://github.com/PaddlePaddle/PaddleNLP)")
|
66 |
with gr.Group():
|
67 |
with gr.Box():
|
@@ -87,8 +87,8 @@ with block:
|
|
87 |
).style(grid=[1, 1], height="auto")
|
88 |
|
89 |
gr.Examples(examples=examples, fn=gen_image, inputs=text, outputs=gallery)
|
90 |
-
text.submit(gen_image, inputs=text, outputs=gallery)
|
91 |
-
btn.click(gen_image, inputs=text, outputs=gallery)
|
92 |
|
93 |
gr.Image('./paddlenlp-preview.jpeg')
|
94 |
gr.HTML(read_content("footer.html"))
|
|
|
61 |
|
62 |
with block:
|
63 |
gr.HTML(read_content("header.html"))
|
64 |
+
gr.Markdown("> 非常抱歉,由于一些原因,此Space临时停止服务,等国庆之后会重新发布。", elem_id='warning', visible=True)
|
65 |
gr.Markdown("[![Stargazers repo roster for @PaddlePaddle/PaddleNLP](https://reporoster.com/stars/PaddlePaddle/PaddleNLP)](https://github.com/PaddlePaddle/PaddleNLP)")
|
66 |
with gr.Group():
|
67 |
with gr.Box():
|
|
|
87 |
).style(grid=[1, 1], height="auto")
|
88 |
|
89 |
gr.Examples(examples=examples, fn=gen_image, inputs=text, outputs=gallery)
|
90 |
+
# text.submit(gen_image, inputs=text, outputs=gallery)
|
91 |
+
# btn.click(gen_image, inputs=text, outputs=gallery)
|
92 |
|
93 |
gr.Image('./paddlenlp-preview.jpeg')
|
94 |
gr.HTML(read_content("footer.html"))
|