Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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 |
|