sitammeur commited on
Commit
db2f499
·
verified ·
1 Parent(s): fb4d7ba

Update src/app/response.py

Browse files
Files changed (1) hide show
  1. 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
- raise gr.Error("Please provide a video and a question.")
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)