Spaces:
Sleeping
Sleeping
John Ho
commited on
Commit
·
4c2d972
1
Parent(s):
c74b32a
allow user to edit prompt
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import spaces, ffmpeg, os, sys
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
|
| 4 |
from qwen_vl_utils import process_vision_info
|
|
@@ -118,6 +118,7 @@ demo = gr.Interface(
|
|
| 118 |
fn=inference,
|
| 119 |
inputs=[
|
| 120 |
gr.Video(label="Input Video"),
|
|
|
|
| 121 |
],
|
| 122 |
outputs=gr.JSON(label="Output JSON"),
|
| 123 |
title="",
|
|
|
|
| 1 |
+
import spaces, ffmpeg, os, sys, torch
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
|
| 4 |
from qwen_vl_utils import process_vision_info
|
|
|
|
| 118 |
fn=inference,
|
| 119 |
inputs=[
|
| 120 |
gr.Video(label="Input Video"),
|
| 121 |
+
gr.Textbox(label="Prompt", value="Describe the camera motion in this video."),
|
| 122 |
],
|
| 123 |
outputs=gr.JSON(label="Output JSON"),
|
| 124 |
title="",
|