esteele commited on
Commit
5c76849
·
verified ·
1 Parent(s): 363c626

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -73,7 +73,6 @@ description = (
73
 
74
  with gr.Blocks() as demo:
75
  gr.Interface(
76
- # fn=keep_alive,
77
  fn=predict_loan_status,
78
  inputs=inputs,
79
  outputs=outputs,
@@ -82,11 +81,11 @@ with gr.Blocks() as demo:
82
  ).render()
83
 
84
  with gr.Row(visible=False):
85
- out = gr.Textbox()
86
- btn = gr.Button()
87
- btn.click(fn=keep_alive,
88
- inputs=[],
89
- outputs="text",
90
  api_name="keep_alive"
91
  )
92
 
 
73
 
74
  with gr.Blocks() as demo:
75
  gr.Interface(
 
76
  fn=predict_loan_status,
77
  inputs=inputs,
78
  outputs=outputs,
 
81
  ).render()
82
 
83
  with gr.Row(visible=False):
84
+ ka_out = gr.Textbox(label="keep_alive_out")
85
+ ka_btn = gr.Button("keep_alive_btn")
86
+ ka_btn.click(fn=keep_alive,
87
+ inputs=None,
88
+ outputs=ka_out,
89
  api_name="keep_alive"
90
  )
91