Iker commited on
Commit
5199433
·
verified ·
1 Parent(s): 01991de

Upload compare_gradio.py

Browse files
Files changed (1) hide show
  1. compare_gradio.py +13 -1
compare_gradio.py CHANGED
@@ -34,7 +34,19 @@ headers = {"X-API-Key": API_KEY, "Content-Type": "application/json"}
34
 
35
 
36
  def update_models():
37
- models = random.sample(["pro", "pro2", "turbo", "turbo2"], 2)
 
 
 
 
 
 
 
 
 
 
 
 
38
  print(f"Models updated: {models}")
39
  return models
40
 
 
34
 
35
 
36
  def update_models():
37
+
38
+ models_pro = ["pro", "pro2", "pro2-fast"]
39
+ models_turbo = ["turbo", "turbo2", "turbo2-fast"]
40
+
41
+ # Randomly select if we want to use pro or turbo models
42
+ if random.random() < 0.5:
43
+ models = models_pro
44
+ else:
45
+ models = models_turbo
46
+
47
+ # Randomly select two models
48
+ models = random.sample(models, 2)
49
+
50
  print(f"Models updated: {models}")
51
  return models
52