Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -59,6 +59,9 @@ def choose_model(model_name):
|
|
59 |
elif model_name == "Microsoft-phi-2":
|
60 |
model = "microsoft/phi-2"
|
61 |
|
|
|
|
|
|
|
62 |
else: # default to zephyr if no model chosen
|
63 |
model = "HuggingFaceH4/zephyr-7b-beta"
|
64 |
|
@@ -98,7 +101,7 @@ demo = gr.ChatInterface(
|
|
98 |
description="Hi there! I am your friendly AI chatbot. Choose from different language models under the Additional Inputs tab below.",
|
99 |
examples=[["Explain quantum computing"], ["Explain forex trading"], ["What is the capital of China?"], ["Make a poem about nature"]],
|
100 |
additional_inputs=[
|
101 |
-
gr.Dropdown(["DeepSeek-R1-Distill-Qwen-1.5B", "DeepSeek-R1-Distill-Qwen-32B", "Gemma-2-2b", "Gemma-7b", "Llama2-13b-chat", "Llama3-8b-Instruct", "Llama3.1-8b-Instruct", "Microsoft-phi-2", "Mixtral-8x7B-Instruct", "Zephyr-7b-beta"], label="Select Model"),
|
102 |
gr.Textbox(value="You are a friendly and helpful Chatbot, be concise and straight to the point, avoid excessive reasoning.", label="System message"),
|
103 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
104 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
|
|
59 |
elif model_name == "Microsoft-phi-2":
|
60 |
model = "microsoft/phi-2"
|
61 |
|
62 |
+
elif model_name == "Qwen2.5-Coder-32B-Instruct":
|
63 |
+
model = "Qwen/Qwen2.5-Coder-32B-Instruct"
|
64 |
+
|
65 |
else: # default to zephyr if no model chosen
|
66 |
model = "HuggingFaceH4/zephyr-7b-beta"
|
67 |
|
|
|
101 |
description="Hi there! I am your friendly AI chatbot. Choose from different language models under the Additional Inputs tab below.",
|
102 |
examples=[["Explain quantum computing"], ["Explain forex trading"], ["What is the capital of China?"], ["Make a poem about nature"]],
|
103 |
additional_inputs=[
|
104 |
+
gr.Dropdown(["DeepSeek-R1-Distill-Qwen-1.5B", "DeepSeek-R1-Distill-Qwen-32B", "Gemma-2-2b", "Gemma-7b", "Llama2-13b-chat", "Llama3-8b-Instruct", "Llama3.1-8b-Instruct", "Microsoft-phi-2", "Mixtral-8x7B-Instruct", "Qwen2.5-Coder-32B-Instruct", "Zephyr-7b-beta"], label="Select Model"),
|
105 |
gr.Textbox(value="You are a friendly and helpful Chatbot, be concise and straight to the point, avoid excessive reasoning.", label="System message"),
|
106 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
107 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|