winglian commited on
Commit
3862af2
1 Parent(s): d88615f

whoops, forgot to shuffle when refactoring random.sample

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -134,6 +134,7 @@ def chat(history1, history2, system_msg):
134
  history2 = history2 or []
135
 
136
  arena_bots = list(AVAILABLE_MODELS.keys())
 
137
  random_battle = arena_bots[0:2]
138
  model1 = get_model_pipeline(random_battle[0])
139
  model2 = get_model_pipeline(random_battle[1])
 
134
  history2 = history2 or []
135
 
136
  arena_bots = list(AVAILABLE_MODELS.keys())
137
+ random.shuffle(arena_bots)
138
  random_battle = arena_bots[0:2]
139
  model1 = get_model_pipeline(random_battle[0])
140
  model2 = get_model_pipeline(random_battle[1])