fspecii commited on
Commit
f7fcd3f
1 Parent(s): 636fcc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -239,8 +239,15 @@ if __name__ == "__main__":
239
  " for faster running and longer generation"
240
  )
241
  js_msg = JSMsgReceiver()
242
- input_model = gr.Dropdown(label="select model", choices=list(models.keys()),
243
- type="value", value=list(models.keys())[0])
 
 
 
 
 
 
 
244
  tab_select = gr.Variable(value=0)
245
  with gr.Tabs():
246
  with gr.TabItem("instrument prompt") as tab1:
 
239
  " for faster running and longer generation"
240
  )
241
  js_msg = JSMsgReceiver()
242
+ with gr.Accordion(label="Model option", open=False):
243
+ load_model_path_btn = gr.Button("Get Models")
244
+ model_path_input = gr.Dropdown(label="model")
245
+ load_model_path_btn.click(get_model_path, [], model_path_input)
246
+ load_model_btn = gr.Button("Load")
247
+ model_msg = gr.Textbox()
248
+ load_model_btn.click(
249
+ load_model, model_path_input, model_msg
250
+ )
251
  tab_select = gr.Variable(value=0)
252
  with gr.Tabs():
253
  with gr.TabItem("instrument prompt") as tab1: