Solar-Prince commited on
Commit
e10c4a8
·
verified ·
1 Parent(s): dffe815

Upload 3 files

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -227,13 +227,13 @@ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Soft(primary_hue="cyan", neutral_
227
  label="Camera input",
228
  sources=["webcam"],
229
  type="numpy",
 
230
  height=520,
231
  )
232
  with gr.Column(scale=1, elem_classes=["panel"]):
233
  annotated = gr.Image(
234
  label="Annotated output",
235
  type="numpy",
236
- streaming=True,
237
  height=520,
238
  )
239
 
@@ -255,6 +255,7 @@ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Soft(primary_hue="cyan", neutral_
255
  time_limit=30,
256
  stream_every=0.12,
257
  concurrency_limit=10,
 
258
  )
259
 
260
  if __name__ == "__main__":
 
227
  label="Camera input",
228
  sources=["webcam"],
229
  type="numpy",
230
+ streaming=True,
231
  height=520,
232
  )
233
  with gr.Column(scale=1, elem_classes=["panel"]):
234
  annotated = gr.Image(
235
  label="Annotated output",
236
  type="numpy",
 
237
  height=520,
238
  )
239
 
 
255
  time_limit=30,
256
  stream_every=0.12,
257
  concurrency_limit=10,
258
+ api_name="analyze_frame",
259
  )
260
 
261
  if __name__ == "__main__":