MonkeyJuice commited on
Commit
a83750e
·
1 Parent(s): da72583

task auto run

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -44,7 +44,6 @@ with gr.Blocks(head_paths="head.html") as demo:
44
  image_mode="RGBA",
45
  show_fullscreen_button=False,
46
  sources=["upload", "clipboard"])
47
- run_button = gr.Button('Run')
48
  result_text = gr.HTML(value="", elem_classes='m5dd_html', padding=False)
49
  with gr.Column(scale=2):
50
  result_html = gr.HTML(value="", elem_classes='m5dd_html', padding=False)
@@ -60,8 +59,7 @@ with gr.Blocks(head_paths="head.html") as demo:
60
  label='Result',
61
  show_copy_button=True,
62
  autoscroll=False)
63
-
64
- run_button.click(
65
  fn=predict,
66
  inputs=[image],
67
  outputs=[result_html, result_text],
 
44
  image_mode="RGBA",
45
  show_fullscreen_button=False,
46
  sources=["upload", "clipboard"])
 
47
  result_text = gr.HTML(value="", elem_classes='m5dd_html', padding=False)
48
  with gr.Column(scale=2):
49
  result_html = gr.HTML(value="", elem_classes='m5dd_html', padding=False)
 
59
  label='Result',
60
  show_copy_button=True,
61
  autoscroll=False)
62
+ image.upload(
 
63
  fn=predict,
64
  inputs=[image],
65
  outputs=[result_html, result_text],