rwitz commited on
Commit
895d918
·
1 Parent(s): 644215e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -37,11 +37,7 @@ def update_elo_rating(new_rating):
37
  # Update the dataset
38
  # Convert updated dataset to a dictionary for pushing
39
  elo_ratings.push_to_hub("rwitz/mistral-elo-ratings",token=os.environ.get("huggingface_token"))
40
- if response.status_code == 200:
41
- print("Successfully updated the dataset")
42
- else:
43
- print("Failed to update the dataset. Response code:", response.status_code)
44
-
45
  # Function to get bot response
46
  def format_alpaca_prompt(state):
47
  alpaca_prompt = "Below is an instruction that describes a task. Write a response that appropriately completes the request."
 
37
  # Update the dataset
38
  # Convert updated dataset to a dictionary for pushing
39
  elo_ratings.push_to_hub("rwitz/mistral-elo-ratings",token=os.environ.get("huggingface_token"))
40
+
 
 
 
 
41
  # Function to get bot response
42
  def format_alpaca_prompt(state):
43
  alpaca_prompt = "Below is an instruction that describes a task. Write a response that appropriately completes the request."