Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,13 @@ def submit_file(event):
|
|
37 |
status.alert_type = "success"
|
38 |
status.visible = True
|
39 |
except Exception as e:
|
40 |
-
|
41 |
-
status.
|
|
|
42 |
status.visible = True
|
|
|
|
|
|
|
43 |
return
|
44 |
|
45 |
# Refresh leaderboard
|
|
|
37 |
status.alert_type = "success"
|
38 |
status.visible = True
|
39 |
except Exception as e:
|
40 |
+
import traceback
|
41 |
+
status.object += f"\n⚠️ Could not load leaderboard:\n```\n{traceback.format_exc()}\n```"
|
42 |
+
status.alert_type = "warning"
|
43 |
status.visible = True
|
44 |
+
# status.object = f"❌ Failed to upload: {e}"
|
45 |
+
# status.alert_type = "danger"
|
46 |
+
# status.visible = True
|
47 |
return
|
48 |
|
49 |
# Refresh leaderboard
|