Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -193,8 +193,9 @@ def detect_with_model(image: Image.Image, prompt: str, username: str, model_name
|
|
| 193 |
token=HF_TOKEN,
|
| 194 |
commit_message="Update leaderboard CSV"
|
| 195 |
)
|
| 196 |
-
except Exception:
|
| 197 |
-
|
|
|
|
| 198 |
else:
|
| 199 |
if model_name.lower() == "real":
|
| 200 |
message += "\n You uploaded a real image, this does not count toward the leaderboard!"
|
|
|
|
| 193 |
token=HF_TOKEN,
|
| 194 |
commit_message="Update leaderboard CSV"
|
| 195 |
)
|
| 196 |
+
except Exception as e:
|
| 197 |
+
print(f"Failed to save image to HF Hub: {e}")
|
| 198 |
+
|
| 199 |
else:
|
| 200 |
if model_name.lower() == "real":
|
| 201 |
message += "\n You uploaded a real image, this does not count toward the leaderboard!"
|