chenjoya commited on
Commit
17f511e
·
verified ·
1 Parent(s): 33feedb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def _init_infer():
19
  infer = None
20
 
21
  with gr.Blocks() as demo:
22
- gr.Markdown("## LiveCC Real-Time Commentary and Conversation - Gradio Demo")
23
  gr.Markdown("### [LiveCC: Learning Video LLM with Streaming Speech Transcription at Scale (CVPR 2025)](https://showlab.github.io/livecc/)")
24
  gr.Markdown("1️⃣ Select Mode, Real-Time Commentary (LiveCC) or Conversation (Common QA)")
25
  gr.Markdown("2️⃣🅰️ Real-Time Commentary: Input a query (optional) -> Click or upload a video.")
@@ -105,6 +105,7 @@ with gr.Blocks() as demo:
105
  state['past_key_values'] = outputs.past_key_values
106
  state['past_ids'] = outputs.sequences[:, :-1]
107
  response = infer.processor.decode(outputs.sequences[0, inputs.input_ids.size(1):], skip_special_tokens=True)
 
108
  yield response, state
109
 
110
  def gr_chatinterface_chatbot_clear_fn():
 
19
  infer = None
20
 
21
  with gr.Blocks() as demo:
22
+ gr.Markdown("## LiveCC Conversation and Real-Time Commentary - Gradio Demo")
23
  gr.Markdown("### [LiveCC: Learning Video LLM with Streaming Speech Transcription at Scale (CVPR 2025)](https://showlab.github.io/livecc/)")
24
  gr.Markdown("1️⃣ Select Mode, Real-Time Commentary (LiveCC) or Conversation (Common QA)")
25
  gr.Markdown("2️⃣🅰️ Real-Time Commentary: Input a query (optional) -> Click or upload a video.")
 
105
  state['past_key_values'] = outputs.past_key_values
106
  state['past_ids'] = outputs.sequences[:, :-1]
107
  response = infer.processor.decode(outputs.sequences[0, inputs.input_ids.size(1):], skip_special_tokens=True)
108
+ print(response)
109
  yield response, state
110
 
111
  def gr_chatinterface_chatbot_clear_fn():