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