aiqcamp commited on
Commit
26faed3
Β·
verified Β·
1 Parent(s): 196e1f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -257,7 +257,6 @@ with gr.Blocks(analytics_enabled=False) as demo:
257
  with gr.Column():
258
  gr.Markdown("# Sa2VA: Marrying SAM2 with LLaVA for Dense Grounded Understanding of Images and Videos")
259
 
260
-
261
  with gr.Tab("Single Image"):
262
  with gr.Row():
263
  with gr.Column():
@@ -296,8 +295,7 @@ with gr.Blocks(analytics_enabled=False) as demo:
296
  with gr.Tab("Webcam"):
297
  with gr.Row():
298
  with gr.Column():
299
- webcam_input = gr.Webcam(label="Webcam Input") # gr.Image λŒ€μ‹  gr.Webcam μ‚¬μš©
300
-
301
  with gr.Row():
302
  webcam_instruction = gr.Textbox(
303
  label="Instruction",
 
257
  with gr.Column():
258
  gr.Markdown("# Sa2VA: Marrying SAM2 with LLaVA for Dense Grounded Understanding of Images and Videos")
259
 
 
260
  with gr.Tab("Single Image"):
261
  with gr.Row():
262
  with gr.Column():
 
295
  with gr.Tab("Webcam"):
296
  with gr.Row():
297
  with gr.Column():
298
+ webcam_input = gr.Image(source="webcam", streaming=True, label="Webcam Input")
 
299
  with gr.Row():
300
  webcam_instruction = gr.Textbox(
301
  label="Instruction",