kalpniks commited on
Commit
69672c5
·
verified ·
1 Parent(s): 48bf46d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -76,8 +76,11 @@ def sign_language_classification_streamlit(video_path):
76
 
77
  except Exception as e:
78
  print(f"Error caught: {e}")
79
- return f"Error processing video: {e}", f"Error processing video: {e}
80
- {traceback.format_exc()}"
 
 
 
81
 
82
 
83
  st.set_page_config(page_title="ASL Translator", layout="centered")
 
76
 
77
  except Exception as e:
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
 
86
  st.set_page_config(page_title="ASL Translator", layout="centered")