Omnibus commited on
Commit
570ccce
1 Parent(s): 876a6c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -26,8 +26,10 @@ def load_models(model_in):
26
  with gr.Blocks() as app:
27
  with gr.Row():
28
  model_name=gr.Textbox(label="Model", value=models[0], placeholder=models[0])
 
29
  with gr.Row():
30
  models_out=gr.JSON(label="Gradio Details")
31
  details=gr.JSON(label="Hub Details")
32
  app.load(load_models,model_name,[models_out,details])
 
33
  app.launch()
 
26
  with gr.Blocks() as app:
27
  with gr.Row():
28
  model_name=gr.Textbox(label="Model", value=models[0], placeholder=models[0])
29
+ load_btn=gr.Button(label="Load")
30
  with gr.Row():
31
  models_out=gr.JSON(label="Gradio Details")
32
  details=gr.JSON(label="Hub Details")
33
  app.load(load_models,model_name,[models_out,details])
34
+ load_btn.click(load_models,model_name,[models_out,details])
35
  app.launch()