Spaces:
Running
Running
# Run the Streamlit app with increased buffer size for large files | |
# Load environment variables from .env file if it exists | |
if [ -f .env ]; then | |
echo "Loading environment variables from .env file" | |
set -o allexport | |
source .env | |
set +o allexport | |
else | |
echo "No .env file found. Using API key from config.py" | |
fi | |
# Check if MISTRAL_API_KEY is set | |
if [ -z "$MISTRAL_API_KEY" ]; then | |
echo "WARNING: MISTRAL_API_KEY is not set in environment. Using key from config.py if available." | |
fi | |
# Run the Streamlit app with increased buffer size | |
streamlit run app.py \ | |
--server.maxUploadSize=500 \ | |
--server.maxMessageSize=500 |