aiqcamp commited on
Commit
8abec8c
Β·
verified Β·
1 Parent(s): 7dba747

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -328,8 +328,7 @@ with gr.Blocks(analytics_enabled=False) as demo:
328
  with gr.Tab("Webcam"):
329
  with gr.Row():
330
  with gr.Column():
331
- # μ›ΉμΊ  μ»΄ν¬λ„ŒνŠΈ μˆ˜μ •
332
- webcam_input = gr.Webcam(label="Webcam Input")
333
  with gr.Row():
334
  webcam_instruction = gr.Textbox(
335
  label="Instruction",
@@ -355,11 +354,4 @@ with gr.Blocks(analytics_enabled=False) as demo:
355
  outputs=[status_text]
356
  )
357
 
358
- # μ›ΉμΊ  μ•‘μ„ΈμŠ€ κΆŒν•œμ„ μš”μ²­ν•˜κ³  디버그 λͺ¨λ“œλ‘œ μ‹€ν–‰
359
- demo.queue().launch(
360
- show_api=False,
361
- show_error=True,
362
- enable_queue=True,
363
- debug=True,
364
- share=True # μ™ΈλΆ€ μ ‘κ·Ό ν—ˆμš©
365
- )
 
328
  with gr.Tab("Webcam"):
329
  with gr.Row():
330
  with gr.Column():
331
+ webcam_input = gr.Image(label="Webcam Input", sources=["webcam"], streaming=True)
 
332
  with gr.Row():
333
  webcam_instruction = gr.Textbox(
334
  label="Instruction",
 
354
  outputs=[status_text]
355
  )
356
 
357
+ demo.queue().launch(show_api=False, show_error=True)