Thomas Simonini commited on
Commit
5a59c8e
1 Parent(s): aadd9ad

Change model position

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -135,7 +135,7 @@ additional_inputs=[
135
 
136
  chatbot = gr.Chatbot(avatar_images=('user.png', 'bot2.png'),bubble_full_width = False)
137
 
138
- model = gr.Dropdown(["api_url_7b", "api_url_13b", "api_url_70b"], label="Model", info="Which model to use?")
139
 
140
  chat_interface_stream = gr.ChatInterface(predict,
141
  title=title,
@@ -143,8 +143,7 @@ chat_interface_stream = gr.ChatInterface(predict,
143
  textbox=gr.Textbox(),
144
  chatbot=chatbot,
145
  cache_examples=True,
146
- additional_inputs=additional_inputs,
147
- model = model)
148
 
149
  # Gradio Demo
150
  with gr.Blocks() as demo:
 
135
 
136
  chatbot = gr.Chatbot(avatar_images=('user.png', 'bot2.png'),bubble_full_width = False)
137
 
138
+ gr.Dropdown(["api_url_7b", "api_url_13b", "api_url_70b"], label="Model", info="Which model to use?")
139
 
140
  chat_interface_stream = gr.ChatInterface(predict,
141
  title=title,
 
143
  textbox=gr.Textbox(),
144
  chatbot=chatbot,
145
  cache_examples=True,
146
+ additional_inputs=additional_inputs)
 
147
 
148
  # Gradio Demo
149
  with gr.Blocks() as demo: