GMFTBY commited on
Commit
12ef62d
1 Parent(s): bc3f10a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(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
 
 
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