supermy commited on
Commit
6d415e1
1 Parent(s): 0fe9f5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def set_example_url(example: list) -> dict:
86
  return gr.Textbox.update(value=example[0])
87
 
88
 
89
- title = """<h1 id="title">Object Detection App with DETR and YOLOS</h1>"""
90
 
91
  description = """
92
  Links to HuggingFace Models:
@@ -140,7 +140,7 @@ with demo:
140
  samples=[[path.as_posix()]
141
  for path in sorted(pathlib.Path('images').rglob('*.JPG'))])
142
 
143
- img_but = gr.Button('Detect')
144
 
145
 
146
  url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=img_output_from_url,queue=True)
 
86
  return gr.Textbox.update(value=example[0])
87
 
88
 
89
+ title = """<h1 id="title">目标检测</h1>"""
90
 
91
  description = """
92
  Links to HuggingFace Models:
 
140
  samples=[[path.as_posix()]
141
  for path in sorted(pathlib.Path('images').rglob('*.JPG'))])
142
 
143
+ img_but = gr.Button('检测')
144
 
145
 
146
  url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=img_output_from_url,queue=True)