Ziyou Li commited on
Commit
4794c33
·
1 Parent(s): 936f336

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,13 +82,13 @@ with gr.Blocks() as demo:
82
 
83
  with gr.Row():
84
  btn_sub = gr.Button(value="Submit")
85
-
86
- demo.load(get_row, every=10)
87
 
88
  btn_sub.click(infer, inputs = inputs, outputs = outputs)
89
 
90
  #examples = gr.Examples(fn = infer, examples=[get_row()],inputs=inputs,outputs=outputs ,cache_examples=True)
91
  examples = gr.Examples(fn = infer, examples=[get_row()] ,inputs=inputs, outputs=outputs, cache_examples=False)
 
 
92
 
93
 
94
 
 
82
 
83
  with gr.Row():
84
  btn_sub = gr.Button(value="Submit")
 
 
85
 
86
  btn_sub.click(infer, inputs = inputs, outputs = outputs)
87
 
88
  #examples = gr.Examples(fn = infer, examples=[get_row()],inputs=inputs,outputs=outputs ,cache_examples=True)
89
  examples = gr.Examples(fn = infer, examples=[get_row()] ,inputs=inputs, outputs=outputs, cache_examples=False)
90
+
91
+ demo.load(get_row, inputs = None, outputs = examples, every=10)
92
 
93
 
94