zuozuo commited on
Commit
6d2a802
1 Parent(s): 9d7e6df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -17,6 +17,11 @@ def poem(cls, max_length):
17
  return txt[0]['generated_text'].replace('[CLS]','').replace('[SEP]','').replace(' ','').replace('。','。\n')
18
 
19
  iface = gr.Interface(
 
 
 
 
 
20
  fn=poem,
21
  inputs=[
22
  gr.Textbox("今晚提测又加班,BUG一堆改不完。", lines=1, label="请输入一句诗词:"),
 
17
  return txt[0]['generated_text'].replace('[CLS]','').replace('[SEP]','').replace(' ','').replace('。','。\n')
18
 
19
  iface = gr.Interface(
20
+ gr.Markdown(
21
+ """
22
+ # 写一首诗
23
+ 模型:https://huggingface.co/uer/gpt2-chinese-poem
24
+ """),
25
  fn=poem,
26
  inputs=[
27
  gr.Textbox("今晚提测又加班,BUG一堆改不完。", lines=1, label="请输入一句诗词:"),