Spaces:
Runtime error
Runtime error
whoops, forgot to shuffle when refactoring random.sample
Browse files
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])
|