chenjoya commited on
Commit
64d3228
·
1 Parent(s): 63ef71f
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,4 +1,3 @@
1
- import os
2
  import gradio as gr
3
 
4
  from demo.infer import LiveCCDemoInfer
@@ -23,10 +22,10 @@ gradio_backend = GradioBackend()
23
  with gr.Blocks() as demo:
24
  gr.Markdown("## LiveCC Real-Time Commentary and Conversation - Gradio Demo")
25
  gr.Markdown("### [LiveCC: Learning Video LLM with Streaming Speech Transcription at Scale (CVPR 2025)](https://showlab.github.io/livecc/)")
26
- gr.Markdown("#### 1️⃣ Select Mode, Real-Time Commentary (LiveCC) or Conversation (Common QA)")
27
- gr.Markdown("#### 2️⃣ (Optional) Input a query. If there is no query, the default query is 'Please describe the video.' ")
28
- gr.Markdown("#### 3️⃣ Click the video, or upload a video.")
29
- gr.Markdown("#### Web Gradio has unexpected latency (3s~5s). If you want to enjoy the very real-time experience, please try our CLI demo https://github.com/showlab/livecc")
30
  gr_state = gr.State({}, render=False) # control all useful state, including kv cache
31
  gr_video_state = gr.JSON({}, visible=False) # only record video state, belong to gr_state but lightweight
32
  gr_static_trigger = gr.Number(value=0, visible=False) # control start streaming or stop
 
 
1
  import gradio as gr
2
 
3
  from demo.infer import LiveCCDemoInfer
 
22
  with gr.Blocks() as demo:
23
  gr.Markdown("## LiveCC Real-Time Commentary and Conversation - Gradio Demo")
24
  gr.Markdown("### [LiveCC: Learning Video LLM with Streaming Speech Transcription at Scale (CVPR 2025)](https://showlab.github.io/livecc/)")
25
+ gr.Markdown("1️⃣ Select Mode, Real-Time Commentary (LiveCC) or Conversation (Common QA)")
26
+ gr.Markdown("2️⃣ (Optional) Input a query. If there is no query, the default query is 'Please describe the video.' ")
27
+ gr.Markdown("3️⃣ Click the video, or upload a video.")
28
+ gr.Markdown("*Web Gradio has unexpected latency (3s~5s). If you want to enjoy the very real-time experience, please try our CLI demo https://github.com/showlab/livecc*")
29
  gr_state = gr.State({}, render=False) # control all useful state, including kv cache
30
  gr_video_state = gr.JSON({}, visible=False) # only record video state, belong to gr_state but lightweight
31
  gr_static_trigger = gr.Number(value=0, visible=False) # control start streaming or stop