Spaces:
Sleeping
Sleeping
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") |