llm_topic_modelling / entrypoint.sh
seanpedrickcase's picture
Sync: Removed another s3 key, and unnecessary xlsx save print statement. Formatter check.
2cad7c3
raw
history blame contribute delete
394 Bytes
#!/bin/sh
# Exit immediately if a command exits with a non-zero status.
set -e
echo "Starting in APP_MODE: $APP_MODE"
# --- Start the app based on mode ---
if [ "$APP_MODE" = "lambda" ]; then
echo "Starting in Lambda mode..."
# The CMD from Dockerfile will be passed as "$@"
exec python -m awslambdaric "$@"
else
echo "Starting in Gradio mode..."
exec python app.py
fi