wjmcat commited on
Commit
478d0cd
1 Parent(s): 2106097

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -61,7 +61,7 @@ examples = [
61
 
62
  with block:
63
  gr.HTML(read_content("header.html"))
64
- gr.Markdown("> warning", elem_id='warning', visible=False)
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"))