Spaces:
Running
on
Zero
Running
on
Zero
Update src/app/response.py
Browse files- src/app/response.py +1 -1
src/app/response.py
CHANGED
@@ -42,7 +42,7 @@ def describe_video(video: str, question: str) -> str:
|
|
42 |
try:
|
43 |
# Check if video or question is None
|
44 |
if not video or not question:
|
45 |
-
|
46 |
|
47 |
# Encode the video frames
|
48 |
frames = encode_video(video)
|
|
|
42 |
try:
|
43 |
# Check if video or question is None
|
44 |
if not video or not question:
|
45 |
+
gr.Warning("Please provide a video and a question.")
|
46 |
|
47 |
# Encode the video frames
|
48 |
frames = encode_video(video)
|