Mansurbek commited on
Commit
59f886e
·
1 Parent(s): f2d2f9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -30,7 +30,7 @@ def fn(text):
30
  with gr.Blocks() as demo:
31
  with gr.Row():
32
  with gr.Column():
33
- output0 = gr.Label(label=models[0])
34
  with gr.Column():
35
  output1 = gr.Label(label=models[1])
36
  with gr.Row():
@@ -41,8 +41,5 @@ with gr.Blocks() as demo:
41
  btn = gr.Button("Check")
42
  gr.Examples(examples, fn=fn, inputs=[input], outputs=[output0, output1, output2], cache_examples=True, batch=True)
43
  btn.click(fn, inputs=[input], outputs=[output0, output1, output2])
44
-
45
- initial_results = fn(examples[0])
46
- output0.value=initial_results[0]
47
  if __name__ == "__main__":
48
  demo.queue().launch()
 
30
  with gr.Blocks() as demo:
31
  with gr.Row():
32
  with gr.Column():
33
+ output0 = gr.Label(label=models[0], value=fn(examples([0][0])))
34
  with gr.Column():
35
  output1 = gr.Label(label=models[1])
36
  with gr.Row():
 
41
  btn = gr.Button("Check")
42
  gr.Examples(examples, fn=fn, inputs=[input], outputs=[output0, output1, output2], cache_examples=True, batch=True)
43
  btn.click(fn, inputs=[input], outputs=[output0, output1, output2])
 
 
 
44
  if __name__ == "__main__":
45
  demo.queue().launch()