rwitz commited on
Commit
1ace03d
1 Parent(s): 2f3d9b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,6 @@ def read_elo_ratings():
23
  except FileNotFoundError:
24
  elo_ratings = {model: 1200 for model in chatbots.keys()}
25
  return elo_ratings
26
- state['elo_ratings']=read_elo_ratings()
27
  # Write ELO ratings to file (thread-safe)
28
  def write_elo_ratings(elo_ratings):
29
  with open('elo_ratings.json', 'w') as file:
@@ -103,6 +102,7 @@ def user_ask(state, chatbot1, chatbot2, textbox):
103
 
104
  with gr.Blocks() as demo:
105
  state = gr.State({})
 
106
  with gr.Row():
107
  # First column for Model A
108
  with gr.Column():
 
23
  except FileNotFoundError:
24
  elo_ratings = {model: 1200 for model in chatbots.keys()}
25
  return elo_ratings
 
26
  # Write ELO ratings to file (thread-safe)
27
  def write_elo_ratings(elo_ratings):
28
  with open('elo_ratings.json', 'w') as file:
 
102
 
103
  with gr.Blocks() as demo:
104
  state = gr.State({})
105
+ state['elo_ratings']=read_elo_ratings()
106
  with gr.Row():
107
  # First column for Model A
108
  with gr.Column():