chenjoya commited on
Commit
bc5cb8c
·
verified ·
1 Parent(s): 4f38308

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,11 +23,8 @@ class GradioBackend:
23
 
24
  def to(self, device):
25
  self.infer.model.to(device)
26
-
27
- gradio_backend = GradioBackend()
28
 
29
  with gr.Blocks() as demo:
30
-
31
  gr.Markdown("## LiveCC Real-Time Commentary and Conversation - Gradio Demo")
32
  gr.Markdown("### [LiveCC: Learning Video LLM with Streaming Speech Transcription at Scale (CVPR 2025)](https://showlab.github.io/livecc/)")
33
  gr.Markdown("1️⃣ Select Mode, Real-Time Commentary (LiveCC) or Conversation (Common QA)")
@@ -38,6 +35,9 @@ with gr.Blocks() as demo:
38
  gr_video_state = gr.JSON({}, visible=False) # only record video state, belong to gr_state but lightweight
39
  gr_static_trigger = gr.Number(value=0, visible=False) # control start streaming or stop
40
  gr_dynamic_trigger = gr.Number(value=0, visible=False) # for continuous refresh
 
 
 
41
  with gr.Row():
42
  with gr.Column():
43
  gr_video = gr.Video(
 
23
 
24
  def to(self, device):
25
  self.infer.model.to(device)
 
 
26
 
27
  with gr.Blocks() as demo:
 
28
  gr.Markdown("## LiveCC Real-Time Commentary and Conversation - Gradio Demo")
29
  gr.Markdown("### [LiveCC: Learning Video LLM with Streaming Speech Transcription at Scale (CVPR 2025)](https://showlab.github.io/livecc/)")
30
  gr.Markdown("1️⃣ Select Mode, Real-Time Commentary (LiveCC) or Conversation (Common QA)")
 
35
  gr_video_state = gr.JSON({}, visible=False) # only record video state, belong to gr_state but lightweight
36
  gr_static_trigger = gr.Number(value=0, visible=False) # control start streaming or stop
37
  gr_dynamic_trigger = gr.Number(value=0, visible=False) # for continuous refresh
38
+
39
+ gradio_backend = GradioBackend()
40
+
41
  with gr.Row():
42
  with gr.Column():
43
  gr_video = gr.Video(