kalpniks commited on
Commit
4b02806
·
verified ·
1 Parent(s): 69672c5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -78,8 +78,7 @@ def sign_language_classification_streamlit(video_path):
78
  print(f"Error caught: {e}")
79
  # Modify the return to ensure the traceback is flattened into a single line
80
  error_msg = f"Error processing video: {e}"
81
- full_traceback_flat = traceback.format_exc().replace('
82
- ', ' | ').replace('
83
  return error_msg, f"{{error_msg}} (Details: {{full_traceback_flat}})"
84
 
85
 
 
78
  print(f"Error caught: {e}")
79
  # Modify the return to ensure the traceback is flattened into a single line
80
  error_msg = f"Error processing video: {e}"
81
+ full_traceback_flat = traceback.format_exc().replace('\n', ' | ').replace('\r', '')
 
82
  return error_msg, f"{{error_msg}} (Details: {{full_traceback_flat}})"
83
 
84