Qifan Zhang
commited on
Commit
·
8920952
1
Parent(s):
0e97d35
add xlm example
Browse files- app.py +1 -1
- data/example_xlm.csv +19 -0
- data/{example.csv → example_zh.csv} +0 -0
app.py
CHANGED
@@ -64,7 +64,7 @@ model_name_dropdown = gr.components.Dropdown(
|
|
64 |
)
|
65 |
|
66 |
text_input = gr.components.Textbox(
|
67 |
-
value=open('data/
|
68 |
lines=10,
|
69 |
type='text'
|
70 |
)
|
|
|
64 |
)
|
65 |
|
66 |
text_input = gr.components.Textbox(
|
67 |
+
value=open('data/example_xlm.csv', 'r').read(),
|
68 |
lines=10,
|
69 |
type='text'
|
70 |
)
|
data/example_xlm.csv
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
id,prompt,response
|
2 |
+
1,床单,过滤器
|
3 |
+
1,床单,做成渔网捞鱼
|
4 |
+
1,床单,做成枕头
|
5 |
+
1,牙刷,捅人
|
6 |
+
1,牙刷,用作鞋拔
|
7 |
+
1,牙刷,当飞镖扔
|
8 |
+
2,床单,做被子
|
9 |
+
2,床单,保暖
|
10 |
+
2,床单,绑在树上做成吊床
|
11 |
+
1,bedsheet,used as a filter
|
12 |
+
1,bedsheet,used as a net to catch fish
|
13 |
+
1,bedsheet,to make pillows
|
14 |
+
1,toothbrush,stab people
|
15 |
+
1,toothbrush,wash shoes
|
16 |
+
1,toothbrush,throw as darts
|
17 |
+
2,bedsheet,to make quilt
|
18 |
+
2,bedsheet,to keep warm
|
19 |
+
2,bedsheet,tied to trees to make a hammock
|
data/{example.csv → example_zh.csv}
RENAMED
File without changes
|