Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -239,8 +239,15 @@ if __name__ == "__main__":
|
|
239 |
" for faster running and longer generation"
|
240 |
)
|
241 |
js_msg = JSMsgReceiver()
|
242 |
-
|
243 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
|