Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,8 @@ def predict(
|
|
109 |
modality_cache,
|
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 |
else:
|
114 |
print(f'[!] image path: {image_path}\n[!] audio path: {audio_path}\n[!] video path: {video_path}\n[!] thermal path: {thermal_path}')
|
115 |
|
|
|
109 |
modality_cache,
|
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(input, "εΎηει³ι’δ»₯εθ§ι’δΈΊη©ΊοΌθ―·ιζ°δΈδΌ ζθ½εΌε―ε―Ήθ―γ")
|
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 |
|