prithivMLmods commited on
Commit
b65fb42
·
verified ·
1 Parent(s): 3751e60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -356,7 +356,7 @@ def generate(
356
  t = Thread(target=model.generate, kwargs=generation_kwargs)
357
  t.start()
358
  outputs = []
359
- yield progress_bar_html("Processing with Qwen2VL Ocr")
360
  for new_text in streamer:
361
  outputs.append(new_text)
362
  yield "".join(outputs)
@@ -376,11 +376,11 @@ demo = gr.ChatInterface(
376
  gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2),
377
  ],
378
  examples=[
 
379
  [{"text": "@video-infer Describe the Ad", "files": ["examples/coca.mp4"]}],
380
  [{"text": "@video-infer Summarize the event in video", "files": ["examples/sky.mp4"]}],
381
  [{"text": "@video-infer Describe the video", "files": ["examples/Missing.mp4"]}],
382
  ["@image Chocolate dripping from a donut"],
383
- ["Python Program for Array Rotation"],
384
  ["@tts1 Who is Nikola Tesla, and why did he die?"],
385
  [{"text": "Extract JSON from the image", "files": ["examples/document.jpg"]}],
386
  [{"text": "summarize the letter", "files": ["examples/1.png"]}],
 
356
  t = Thread(target=model.generate, kwargs=generation_kwargs)
357
  t.start()
358
  outputs = []
359
+ yield progress_bar_html("Processing...")
360
  for new_text in streamer:
361
  outputs.append(new_text)
362
  yield "".join(outputs)
 
376
  gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2),
377
  ],
378
  examples=[
379
+ ["Write the Python Program for Array Rotation"],
380
  [{"text": "@video-infer Describe the Ad", "files": ["examples/coca.mp4"]}],
381
  [{"text": "@video-infer Summarize the event in video", "files": ["examples/sky.mp4"]}],
382
  [{"text": "@video-infer Describe the video", "files": ["examples/Missing.mp4"]}],
383
  ["@image Chocolate dripping from a donut"],
 
384
  ["@tts1 Who is Nikola Tesla, and why did he die?"],
385
  [{"text": "Extract JSON from the image", "files": ["examples/document.jpg"]}],
386
  [{"text": "summarize the letter", "files": ["examples/1.png"]}],