kalpniks commited on
Commit
76a8928
·
verified ·
1 Parent(s): 1097247

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -117,8 +117,7 @@ def sign_language_classification(video):
117
  print(f"Error caught: {e}") # Debug print if an error occurs
118
  # Yield error message and traceback information in case of an exception
119
  # Flatten traceback to avoid SyntaxError in the generated string
120
- flat_traceback = traceback.format_exc().replace('
121
- ', ' | ').replace('
122
  yield f"Error processing video: {e}", f"Error processing video: {e}
123
  {{flat_traceback}}"
124
 
 
117
  print(f"Error caught: {e}") # Debug print if an error occurs
118
  # Yield error message and traceback information in case of an exception
119
  # Flatten traceback to avoid SyntaxError in the generated string
120
+ flat_traceback = traceback.format_exc().replace(chr(10), ' | ').replace(chr(13), '')
 
121
  yield f"Error processing video: {e}", f"Error processing video: {e}
122
  {{flat_traceback}}"
123