chenjoya commited on
Commit
05778f8
·
verified ·
1 Parent(s): 8f86fe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,10 +29,10 @@ gradio_backend = None if hf_spaces else GradioBackend()
29
  with gr.Blocks() as demo:
30
  gr.Markdown("## LiveCC Conversation and Real-Time Commentary - Gradio Demo")
31
  gr.Markdown("### [LiveCC: Learning Video LLM with Streaming Speech Transcription at Scale (CVPR 2025)](https://showlab.github.io/livecc/)")
32
- gr.Markdown("1️⃣ Select Mode, Real-Time Commentary (LiveCC) or Conversation (Common QA)")
33
  gr.Markdown("2️⃣🅰️ **Real-Time Commentary: Input a query (optional) -> Click or upload a video**.")
34
  gr.Markdown("2️⃣🅱️ **Conversation: Click or upload a video -> Input a query**. But as the past_key_values support in ZeroGPU is not good, multi-turn conversation could be slower.")
35
- gr.Markdown("*HF Space Gradio has unsolvable latency (10s~20s). If you want to enjoy the very real-time experience, please deploy locally https://github.com/showlab/livecc*")
36
  gr_state = gr.State({}, render=False) # control all useful state, including kv cache
37
  gr_video_state = gr.JSON({}, visible=False) # only record video state, belong to gr_state but lightweight
38
  gr_static_trigger = gr.Number(value=0, visible=False) # control start streaming or stop
 
29
  with gr.Blocks() as demo:
30
  gr.Markdown("## LiveCC Conversation and Real-Time Commentary - Gradio Demo")
31
  gr.Markdown("### [LiveCC: Learning Video LLM with Streaming Speech Transcription at Scale (CVPR 2025)](https://showlab.github.io/livecc/)")
32
+ gr.Markdown("1️⃣ Select Mode, Real-Time Commentary (LiveCC) or Conversation (Common QA/Multi-turn)")
33
  gr.Markdown("2️⃣🅰️ **Real-Time Commentary: Input a query (optional) -> Click or upload a video**.")
34
  gr.Markdown("2️⃣🅱️ **Conversation: Click or upload a video -> Input a query**. But as the past_key_values support in ZeroGPU is not good, multi-turn conversation could be slower.")
35
+ gr.Markdown("*HF Space Gradio has unsolvable latency (10s~20s), and not support flash-attn. If you want to enjoy the very real-time experience, please deploy locally https://github.com/showlab/livecc*")
36
  gr_state = gr.State({}, render=False) # control all useful state, including kv cache
37
  gr_video_state = gr.JSON({}, visible=False) # only record video state, belong to gr_state but lightweight
38
  gr_static_trigger = gr.Number(value=0, visible=False) # control start streaming or stop