cetusian commited on
Commit
7660535
·
verified ·
1 Parent(s): 559deca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -10,10 +10,10 @@ login(api_key)
10
  # Predefined list of models to compare (can be expanded)
11
  model_options = {
12
  "Llama-3.1-70B": "meta-llama/Llama-3.1-70B-Instruct",
13
- "GPT-4": "TheBloke/Open_Gpt4_8x7B-GGUF",
14
- "Falcon-40B": "tiiuae/falcon-40b-instruct",
15
- "Mistral-7B": "mistralai/Mistral-7B-Instruct-v0.3",
16
- "Bloom": "bigscience/bloom",
17
  }
18
 
19
  # Initialize clients for models
@@ -77,7 +77,7 @@ def create_demo():
77
  selected_models = gr.CheckboxGroup(
78
  choices=list(model_options.keys()),
79
  label="Select models to compare",
80
- value=["Llama-3.1-70B", "GPT-4"], # Default models
81
  )
82
 
83
  submit_button = gr.Button("Generate Responses")
@@ -126,7 +126,7 @@ def create_demo():
126
  outputs=[response[2] for response in response_boxes],
127
  )
128
 
129
- vote_state = gr.State([0] * len(model_options)) # One vote count per model
130
 
131
  for model_name, _, _, vote_button, vote_count in response_boxes:
132
  vote_button.click(
 
10
  # Predefined list of models to compare (can be expanded)
11
  model_options = {
12
  "Llama-3.1-70B": "meta-llama/Llama-3.1-70B-Instruct",
13
+ "Qwen-2.5-1.5B-Instruct": "Qwen/Qwen2.5-1.5B-Instruct",
14
+ "Llama-3.2-1B": "meta-llama/Llama-3.2-1B",
15
+ "DeepSeek-V2.5": "deepseek-ai/DeepSeek-V2.5",
16
+ "Athene-V2-Chat": "Nexusflow/Athene-V2-Chat",
17
  }
18
 
19
  # Initialize clients for models
 
77
  selected_models = gr.CheckboxGroup(
78
  choices=list(model_options.keys()),
79
  label="Select models to compare",
80
+ value=["Llama-3.1-70B", "Qwen-2.5-1.5B-Instruct"], # Default models
81
  )
82
 
83
  submit_button = gr.Button("Generate Responses")
 
126
  outputs=[response[2] for response in response_boxes],
127
  )
128
 
129
+ vote_state = gr.State([0] * len(model_options)) # Initialize one vote count per model
130
 
131
  for model_name, _, _, vote_button, vote_count in response_boxes:
132
  vote_button.click(