Spaces:
Runtime error
Runtime error
Update bin_public/app/local.py
Browse files- bin_public/app/local.py +7 -1
bin_public/app/local.py
CHANGED
|
@@ -34,4 +34,10 @@ def info_context(file_list_m):
|
|
| 34 |
print('Start sampling')
|
| 35 |
context = f'已知信息{get_file(randomly(file_list_m))}根据已知信息,生成服从以下格式的患者信息,且尽量精简。\n皮肤病类型:\n患者性别:\n患者年龄:\n病史:\n大致症状:'
|
| 36 |
print('sampling finished')
|
| 37 |
-
return context
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
print('Start sampling')
|
| 35 |
context = f'已知信息{get_file(randomly(file_list_m))}根据已知信息,生成服从以下格式的患者信息,且尽量精简。\n皮肤病类型:\n患者性别:\n患者年龄:\n病史:\n大致症状:'
|
| 36 |
print('sampling finished')
|
| 37 |
+
return context
|
| 38 |
+
|
| 39 |
+
def construct_zhenduan(s):
|
| 40 |
+
return f'<z>{s}'
|
| 41 |
+
|
| 42 |
+
def construct_kaiyao(s):
|
| 43 |
+
return f'<k>{s}'
|