burman-ai commited on
Commit
fe8aa25
·
verified ·
1 Parent(s): 2766a54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -41
app.py CHANGED
@@ -86,15 +86,15 @@ print("Chatbot interface created.")
86
  system_message_box = gr.Textbox(value="", placeholder="You are a helpful assistant.", label="System Prompt")
87
 
88
  max_tokens_slider = gr.Slider(
89
- minimum=1,
90
  maximum=4096,
91
- value=512,
92
- step=1,
93
  label="Max new tokens"
94
  )
95
  temperature_slider = gr.Slider(
96
  minimum=0.1,
97
- maximum=4.0,
98
  value=0.7,
99
  step=0.1,
100
  label="Temperature"
@@ -163,43 +163,7 @@ with demo:
163
  )
164
  print("Model search box created.")
165
 
166
- models_list = [
167
- "meta-llama/Llama-3.3-70B-Instruct",
168
- "meta-llama/Llama-3.1-70B-Instruct",
169
- "meta-llama/Llama-3.0-70B-Instruct",
170
- "meta-llama/Llama-3.2-3B-Instruct",
171
- "meta-llama/Llama-3.2-1B-Instruct",
172
- "meta-llama/Llama-3.1-8B-Instruct",
173
- "NousResearch/Hermes-3-Llama-3.1-8B",
174
- "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
175
- "mistralai/Mistral-Nemo-Instruct-2407",
176
- "mistralai/Mixtral-8x7B-Instruct-v0.1",
177
- "mistralai/Mistral-7B-Instruct-v0.3",
178
- "mistralai/Mistral-7B-Instruct-v0.2",
179
- "Qwen/Qwen2.5-72B-Instruct",
180
- "Qwen/Qwen2.5-3B-Instruct",
181
- "Qwen/Qwen2.5-0.5B-Instruct",
182
- "Qwen/QwQ-32B-Preview",
183
- "Qwen/Qwen2.5-Coder-32B-Instruct",
184
- "microsoft/Phi-3.5-mini-instruct",
185
- "microsoft/Phi-3-mini-128k-instruct",
186
- "microsoft/Phi-3-mini-4k-instruct",
187
- "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
188
- "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
189
- "HuggingFaceH4/zephyr-7b-beta",
190
- "HuggingFaceTB/SmolLM2-360M-Instruct",
191
- "tiiuae/falcon-7b-instruct",
192
- "01-ai/Yi-1.5-34B-Chat",
193
- ]
194
- print("Models list initialized.")
195
-
196
- featured_model_radio = gr.Radio(
197
- label="Select a model below",
198
- choices=models_list,
199
- value="meta-llama/Llama-3.2-3B-Instruct",
200
- interactive=False
201
- )
202
- print("Featured models radio button created.")
203
 
204
  def filter_models(search_term):
205
  print(f"Filtering models with search term: {search_term}")
 
86
  system_message_box = gr.Textbox(value="", placeholder="You are a helpful assistant.", label="System Prompt")
87
 
88
  max_tokens_slider = gr.Slider(
89
+ minimum=1024,
90
  maximum=4096,
91
+ value=1024,
92
+ step=50,
93
  label="Max new tokens"
94
  )
95
  temperature_slider = gr.Slider(
96
  minimum=0.1,
97
+ maximum=1.0,
98
  value=0.7,
99
  step=0.1,
100
  label="Temperature"
 
163
  )
164
  print("Model search box created.")
165
 
166
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
 
168
  def filter_models(search_term):
169
  print(f"Filtering models with search term: {search_term}")