Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1594,7 +1594,6 @@ def batch_inference(
|
|
1594 |
for res, item in zip(responses, all_items):
|
1595 |
item['response'] = res
|
1596 |
|
1597 |
-
# save_path = "/mnt/workspace/workgroup/phi/test.json"
|
1598 |
save_path = BATCH_INFER_SAVE_TMP_FILE
|
1599 |
os.makedirs(os.path.dirname(save_path), exist_ok=True)
|
1600 |
with open(save_path, 'w', encoding='utf-8') as f:
|
@@ -1735,8 +1734,8 @@ def launch():
|
|
1735 |
description=FILE_UPLOAD_DESCRIPTION,
|
1736 |
allow_flagging=False,
|
1737 |
examples=[
|
1738 |
-
["
|
1739 |
-
["
|
1740 |
],
|
1741 |
# cache_examples=True,
|
1742 |
)
|
|
|
1594 |
for res, item in zip(responses, all_items):
|
1595 |
item['response'] = res
|
1596 |
|
|
|
1597 |
save_path = BATCH_INFER_SAVE_TMP_FILE
|
1598 |
os.makedirs(os.path.dirname(save_path), exist_ok=True)
|
1599 |
with open(save_path, 'w', encoding='utf-8') as f:
|
|
|
1734 |
description=FILE_UPLOAD_DESCRIPTION,
|
1735 |
allow_flagging=False,
|
1736 |
examples=[
|
1737 |
+
["upload_chat.json", "chat", 0.2, 1024, 0.5, 0, "[STOP],[END],<s>,</s>"],
|
1738 |
+
["upload_few_shot.json", "few-shot", 0.2, 128, 0.5, 0, "[STOP],[END],<s>,</s>,\\n"]
|
1739 |
],
|
1740 |
# cache_examples=True,
|
1741 |
)
|