Spaces:
Running
Running
fix submit bug in app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def add_new_eval(
|
|
| 51 |
except:
|
| 52 |
error_message = traceback.format_exc()
|
| 53 |
print("Error:", error_message)
|
| 54 |
-
return
|
| 55 |
|
| 56 |
|
| 57 |
if LLM_type == 'Other':
|
|
@@ -98,7 +98,7 @@ def add_new_eval(
|
|
| 98 |
csv_data.loc[col] = new_data
|
| 99 |
csv_data = csv_data.to_csv(CSV_DIR, index=False)
|
| 100 |
submission_repo.push_to_hub()
|
| 101 |
-
return
|
| 102 |
|
| 103 |
|
| 104 |
def get_baseline_df():
|
|
@@ -246,6 +246,7 @@ with block:
|
|
| 246 |
LLM_type,
|
| 247 |
LLM_name_textbox,
|
| 248 |
],
|
|
|
|
| 249 |
)
|
| 250 |
|
| 251 |
|
|
|
|
| 51 |
except:
|
| 52 |
error_message = traceback.format_exc()
|
| 53 |
print("Error:", error_message)
|
| 54 |
+
return f"Error:\n```\n{error_message}\n```"
|
| 55 |
|
| 56 |
|
| 57 |
if LLM_type == 'Other':
|
|
|
|
| 98 |
csv_data.loc[col] = new_data
|
| 99 |
csv_data = csv_data.to_csv(CSV_DIR, index=False)
|
| 100 |
submission_repo.push_to_hub()
|
| 101 |
+
return "OK"
|
| 102 |
|
| 103 |
|
| 104 |
def get_baseline_df():
|
|
|
|
| 246 |
LLM_type,
|
| 247 |
LLM_name_textbox,
|
| 248 |
],
|
| 249 |
+
outputs=submission_result,
|
| 250 |
)
|
| 251 |
|
| 252 |
|