Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def predict(
|
|
110 |
):
|
111 |
if image_path is None and audio_path is None and video_path is None and thermal_path is None:
|
112 |
# return [(input, "图片和音频以及视频为空!请重新上传才能开启对话。")]
|
113 |
-
gr.Error(
|
114 |
else:
|
115 |
print(f'[!] image path: {image_path}\n[!] audio path: {audio_path}\n[!] video path: {video_path}\n[!] thermal path: {thermal_path}')
|
116 |
|
|
|
110 |
):
|
111 |
if image_path is None and audio_path is None and video_path is None and thermal_path is None:
|
112 |
# return [(input, "图片和音频以及视频为空!请重新上传才能开启对话。")]
|
113 |
+
gr.Error("图片和音频以及视频为空!请重新上传才能开启对话。")
|
114 |
else:
|
115 |
print(f'[!] image path: {image_path}\n[!] audio path: {audio_path}\n[!] video path: {video_path}\n[!] thermal path: {thermal_path}')
|
116 |
|