wjmcat commited on
Commit
fdb92a6
1 Parent(s): a4ba56a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -33,7 +33,7 @@ def read_content(file_path: str) -> str:
33
 
34
  return content
35
 
36
- block = gr.Blocks(css=read_content('assets/style.css'))
37
 
38
  examples = [
39
  '贝尼·赖特森、丹·蒙福德、亚伦·霍尔基的黑白血腥维多利亚小镇夜景特写街景,恐怖,月亮升起,交叉阴影,高对比度,超精细,极简主义构图,4k',
@@ -43,7 +43,7 @@ examples = [
43
  ]
44
 
45
  with block:
46
- gr.HTML(read_content("assets/header.html"))
47
  gr.Markdown("[![Stargazers repo roster for @PaddlePaddle/PaddleNLP](https://reporoster.com/stars/PaddlePaddle/PaddleNLP)](https://github.com/PaddlePaddle/PaddleNLP)")
48
  with gr.Group():
49
  with gr.Box():
@@ -72,7 +72,7 @@ with block:
72
  text.submit(gen_image, inputs=text, outputs=gallery)
73
  btn.click(gen_image, inputs=text, outputs=gallery)
74
 
75
- gr.Image('./assets/paddlenlp-preview.jpeg')
76
- gr.HTML(read_content("assets/footer.html"))
77
 
78
  block.queue(concurrency_count=5).launch(debug=True)
 
33
 
34
  return content
35
 
36
+ block = gr.Blocks(css=read_content('style.css'))
37
 
38
  examples = [
39
  '贝尼·赖特森、丹·蒙福德、亚伦·霍尔基的黑白血腥维多利亚小镇夜景特写街景,恐怖,月亮升起,交叉阴影,高对比度,超精细,极简主义构图,4k',
 
43
  ]
44
 
45
  with block:
46
+ gr.HTML(read_content("header.html"))
47
  gr.Markdown("[![Stargazers repo roster for @PaddlePaddle/PaddleNLP](https://reporoster.com/stars/PaddlePaddle/PaddleNLP)](https://github.com/PaddlePaddle/PaddleNLP)")
48
  with gr.Group():
49
  with gr.Box():
 
72
  text.submit(gen_image, inputs=text, outputs=gallery)
73
  btn.click(gen_image, inputs=text, outputs=gallery)
74
 
75
+ gr.Image('./paddlenlp-preview.jpeg')
76
+ gr.HTML(read_content("footer.html"))
77
 
78
  block.queue(concurrency_count=5).launch(debug=True)