Spaces:
Running
Running
# Generate a unique user ID for this space | |
USER_ID=$(uuidgen) | |
# Create a new user with the generated user ID | |
useradd -m -u "$USER_ID" user | |
# Switch to the new user | |
su - user | |
# Start the application | |
uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload |