Annalyn Ng commited on
Commit
6324e4e
1 Parent(s): ecfe3e6

add examples

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -42,10 +42,17 @@ def eval_prob(target_word, text):
42
  gr.Interface(
43
  fn=eval_prob,
44
  inputs=[
45
- gr.Textbox(placeholder="夸大"),
46
- gr.Textbox(placeholder=f"我们使用 Generative AI 已经很长时间了,所以他们最近的媒体报道可能被夸大了。"),
 
 
 
 
47
  ],
48
- outputs="text",
 
 
 
49
  title="Chinese Sentence Grading",
50
  ).launch()
51
 
 
42
  gr.Interface(
43
  fn=eval_prob,
44
  inputs=[
45
+ gr.Textbox(
46
+ label="词语",
47
+ placeholder="夸大"),
48
+ gr.Textbox(
49
+ label="造句",
50
+ placeholder=f"我们使用生成式人工智能已经很长时间了,所以他们最近的媒体报道可能被夸大了。"),
51
  ],
52
+ examples=[
53
+ ["夸大", "我们使用生成式人工智能已经很长时间了,所以他们最近的媒体报道可能被夸大了。"],
54
+ ],
55
+ outputs="Number",
56
  title="Chinese Sentence Grading",
57
  ).launch()
58