Darshika94 commited on
Commit
f625d1c
·
verified ·
1 Parent(s): a64253f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
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
- 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
 
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