Spaces:
Sleeping
Sleeping
Annalyn Ng
commited on
Commit
•
6324e4e
1
Parent(s):
ecfe3e6
add examples
Browse files
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(
|
46 |
-
|
|
|
|
|
|
|
|
|
47 |
],
|
48 |
-
|
|
|
|
|
|
|
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 |
|