csukuangfj commited on
Commit
6393c35
1 Parent(s): 02084e1

small fixes

Browse files
Files changed (1) hide show
  1. app.py +18 -8
app.py CHANGED
@@ -92,10 +92,15 @@ def process_uploaded_video_file(
92
  in_filename: str,
93
  ):
94
  if in_filename is None or in_filename == "":
95
- return "", build_html_output(
96
- "Please first upload a file and then click "
97
- 'the button "submit for recognition"',
98
- "result_item_error",
 
 
 
 
 
99
  )
100
 
101
  logging.info(f"Processing uploaded file: {in_filename}")
@@ -110,10 +115,15 @@ def process_uploaded_audio_file(
110
  in_filename: str,
111
  ):
112
  if in_filename is None or in_filename == "":
113
- return "", build_html_output(
114
- "Please first upload a file and then click "
115
- 'the button "submit for recognition"',
116
- "result_item_error",
 
 
 
 
 
117
  )
118
 
119
  logging.info(f"Processing uploaded file: {in_filename}")
 
92
  in_filename: str,
93
  ):
94
  if in_filename is None or in_filename == "":
95
+ return (
96
+ "",
97
+ build_html_output(
98
+ "Please first upload a file and then click "
99
+ 'the button "submit for recognition"',
100
+ "result_item_error",
101
+ ),
102
+ "",
103
+ "",
104
  )
105
 
106
  logging.info(f"Processing uploaded file: {in_filename}")
 
115
  in_filename: str,
116
  ):
117
  if in_filename is None or in_filename == "":
118
+ return (
119
+ "",
120
+ build_html_output(
121
+ "Please first upload a file and then click "
122
+ 'the button "submit for recognition"',
123
+ "result_item_error",
124
+ ),
125
+ "",
126
+ "",
127
  )
128
 
129
  logging.info(f"Processing uploaded file: {in_filename}")