vicliv commited on
Commit
f6e1b4f
·
1 Parent(s): b41d531

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- pass
 
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!"