rwitz commited on
Commit
038196b
1 Parent(s): e675f6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -58,16 +58,15 @@ def clear_chat(state):
58
  # Initialize the collection object
59
  collection = init_database()
60
 
61
- # Get the list of chatbot names
62
- bot_names = [entry['original_model'] for entry in chatbots_data]
63
 
64
- # Randomly select two new Loras
65
- selected_bots = random.sample(bot_names, 2)
66
- state['last_bots'] = selected_bots
67
 
68
  # Reset other components
69
  return state, [], [], gr.Button.update(interactive=False), gr.Button.update(interactive=False), gr.Textbox.update(value='', interactive=True), gr.Button.update(interactive=True)
70
- global_elo_ratings=None
71
 
72
  from datasets import load_dataset,DatasetDict,Dataset
73
  import requests
 
58
  # Initialize the collection object
59
  collection = init_database()
60
 
61
+ # Get the list of adapter names
62
+ adapter_names = [entry['adapter'] for entry in chatbots_data]
63
 
64
+ # Randomly select two new adapters
65
+ selected_adapters = random.sample(adapter_names, 2)
66
+ state['last_bots'] = selected_adapters
67
 
68
  # Reset other components
69
  return state, [], [], gr.Button.update(interactive=False), gr.Button.update(interactive=False), gr.Textbox.update(value='', interactive=True), gr.Button.update(interactive=True)
 
70
 
71
  from datasets import load_dataset,DatasetDict,Dataset
72
  import requests