jonaschua commited on
Commit
99dd0b4
·
verified ·
1 Parent(s): 27dde00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -41,6 +41,9 @@ def choose_model(model_name):
41
  elif model_name == "Mixtral-8x7B-Instruct":
42
  model = "mistralai/Mixtral-8x7B-Instruct-v0.1"
43
 
 
 
 
44
  elif model_name == "Zephr-7b-beta":
45
  model = "HuggingFaceH4/zephyr-7b-beta"
46
 
@@ -84,7 +87,7 @@ demo = gr.ChatInterface(
84
  respond,
85
 
86
  additional_inputs=[
87
- gr.Dropdown(["DeepSeek-R1-Distill-Qwen-1.5B", "DeepSeek-R1-Distill-Qwen-32B", "Gemma-2-2b", "Llama2-13b-chat", "Llama3-8b-Instruct", "Llama3.1-8b-Instruct", "Mixtral-8x7B-Instruct", "Zephr-7b-beta"], label="Select Model"),
88
  gr.Textbox(value="You are a friendly and helpful Chatbot, be concise and straight to the point, avoid excessive reasoning.", label="System message"),
89
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
90
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
 
41
  elif model_name == "Mixtral-8x7B-Instruct":
42
  model = "mistralai/Mixtral-8x7B-Instruct-v0.1"
43
 
44
+ elif model_name == "Microsoft-phi-2":
45
+ model = "microsoft/phi-2"
46
+
47
  elif model_name == "Zephr-7b-beta":
48
  model = "HuggingFaceH4/zephyr-7b-beta"
49
 
 
87
  respond,
88
 
89
  additional_inputs=[
90
+ gr.Dropdown(["DeepSeek-R1-Distill-Qwen-1.5B", "DeepSeek-R1-Distill-Qwen-32B", "Gemma-2-2b", "Llama2-13b-chat", "Llama3-8b-Instruct", "Llama3.1-8b-Instruct", "Microsoft-phi-2", "Mixtral-8x7B-Instruct", "Zephr-7b-beta"], label="Select Model"),
91
  gr.Textbox(value="You are a friendly and helpful Chatbot, be concise and straight to the point, avoid excessive reasoning.", label="System message"),
92
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
93
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),