Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,12 +15,12 @@ examples = {}
|
|
| 15 |
|
| 16 |
for task in tasks:
|
| 17 |
temp = df[df['prefix']==task]
|
| 18 |
-
n = 40
|
| 19 |
-
if len(temp)>n:
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
|
| 26 |
examples['Freestyle'] = [['请随便输入'],['识别症状并判断阴阳性</s>目前体温正常的话考虑发烧的可能性不大'],['该疾病对应的症状是什么</s>中耳炎']]
|
|
|
|
| 15 |
|
| 16 |
for task in tasks:
|
| 17 |
temp = df[df['prefix']==task]
|
| 18 |
+
#n = 40
|
| 19 |
+
#if len(temp)>n:
|
| 20 |
+
#samples = temp.sample(n)
|
| 21 |
+
samples = samples['input'].tolist()
|
| 22 |
+
samples = [[item] for item in samples]
|
| 23 |
+
examples[task] = samples
|
| 24 |
|
| 25 |
|
| 26 |
examples['Freestyle'] = [['请随便输入'],['识别症状并判断阴阳性</s>目前体温正常的话考虑发烧的可能性不大'],['该疾病对应的症状是什么</s>中耳炎']]
|