Omnibus commited on
Commit
e51c702
1 Parent(s): ba22e9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -71,12 +71,16 @@ def load_models(inp):
71
  out_box=gr.update(label=models[inp])
72
  if "gemma" in models[inp].lower():
73
  prompt_out="<start_of_turn>userUSER_INPUT<end_of_turn><start_of_turn>model"
 
 
74
  if "mixtral" in models[inp].lower():
75
  prompt_out="[INST] USER_INPUT [/INST]"
 
 
76
  else:
77
  prompt_out="USER_INPUT\n"
 
78
 
79
- return out_box,prompt_out, model_state
80
 
81
  VERBOSE=False
82
 
 
71
  out_box=gr.update(label=models[inp])
72
  if "gemma" in models[inp].lower():
73
  prompt_out="<start_of_turn>userUSER_INPUT<end_of_turn><start_of_turn>model"
74
+ return out_box,prompt_out, model_state
75
+
76
  if "mixtral" in models[inp].lower():
77
  prompt_out="[INST] USER_INPUT [/INST]"
78
+ return out_box,prompt_out, model_state
79
+
80
  else:
81
  prompt_out="USER_INPUT\n"
82
+ return out_box,prompt_out, model_state
83
 
 
84
 
85
  VERBOSE=False
86