zhiminy commited on
Commit
3b4c3ae
·
1 Parent(s): 0f4d845

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -371,7 +371,7 @@ def get_leaderboard_data(feedback_entry=None):
371
  [feedback_df, pd.DataFrame([feedback_entry])], ignore_index=True
372
  )
373
 
374
- if feedback_df.empty():
375
  return pd.DataFrame(
376
  columns=[
377
  "Rank",
@@ -926,7 +926,7 @@ with gr.Blocks() as app:
926
  "winner": winner_model,
927
  "timestamp": datetime.now().strftime("%Y%m%d_%H%M%S"),
928
  }
929
-
930
  # Save feedback back to the Hugging Face dataset
931
  save_content_to_hf(feedback_entry, "SE-Arena/votes")
932
 
 
371
  [feedback_df, pd.DataFrame([feedback_entry])], ignore_index=True
372
  )
373
 
374
+ if feedback_df.empty:
375
  return pd.DataFrame(
376
  columns=[
377
  "Rank",
 
926
  "winner": winner_model,
927
  "timestamp": datetime.now().strftime("%Y%m%d_%H%M%S"),
928
  }
929
+
930
  # Save feedback back to the Hugging Face dataset
931
  save_content_to_hf(feedback_entry, "SE-Arena/votes")
932