Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,22 +30,22 @@ load_dotenv()
|
|
| 30 |
#NEW
|
| 31 |
import streamlit as st
|
| 32 |
|
| 33 |
-
# Try importing scipy and other required libraries
|
| 34 |
-
try:
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
except ImportError as e:
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
# You can also check for other libraries in a similar way
|
| 42 |
-
try:
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
except ImportError as e:
|
| 47 |
-
|
| 48 |
-
|
| 49 |
#NEW
|
| 50 |
|
| 51 |
# Streamlit Settings
|
|
|
|
| 30 |
#NEW
|
| 31 |
import streamlit as st
|
| 32 |
|
| 33 |
+
# # Try importing scipy and other required libraries
|
| 34 |
+
# try:
|
| 35 |
+
# import scipy
|
| 36 |
+
# st.success("Scipy is installed!")
|
| 37 |
+
# except ImportError as e:
|
| 38 |
+
# st.error("Scipy is not installed. Please make sure to install it before running the app.")
|
| 39 |
+
# st.stop() # Stop further execution of the app
|
| 40 |
+
|
| 41 |
+
# # You can also check for other libraries in a similar way
|
| 42 |
+
# try:
|
| 43 |
+
# import pypdf
|
| 44 |
+
# import langchain
|
| 45 |
+
# import torch
|
| 46 |
+
# except ImportError as e:
|
| 47 |
+
# st.error(f"Error importing: {e}. Make sure all dependencies are installed.")
|
| 48 |
+
# st.stop()
|
| 49 |
#NEW
|
| 50 |
|
| 51 |
# Streamlit Settings
|