File size: 1,460 Bytes
a544a7a
 
 
 
 
 
 
6f5378f
 
 
a544a7a
6f5378f
 
 
 
 
a544a7a
6f5378f
 
 
 
 
a544a7a
6f5378f
 
 
 
 
a544a7a
6f5378f
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# test.py - Test if all packages are installed correctly
import streamlit as st

st.write("Testing if Streamlit works!")

try:
    import pandas as pd
        st.success("βœ… Pandas imported successfully")
        except:
            st.error("❌ Pandas import failed")

            try:
                import plotly
                    st.success("βœ… Plotly imported successfully")
                    except:
                        st.error("❌ Plotly import failed")

                        try:
                            from textblob import TextBlob
                                st.success("βœ… TextBlob imported successfully")
                                except:
                                    st.error("❌ TextBlob import failed")

                                    try:
                                        import nltk
                                            st.success("βœ… NLTK imported successfully")
                                            except:
                                                st.error("❌ NLTK import failed")

                                                try:
                                                    import openai
                                                        st.success("βœ… OpenAI imported successfully")
                                                        except:
                                                            st.error("❌ OpenAI import failed")