Spaces:
Sleeping
Sleeping
Add .env.example with Supabase configuration
Browse files- .env.example +10 -0
- Dockerfile +26 -0
.env.example
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Supabase Configuration
|
| 2 |
+
# Copy this file to .env and fill in your actual values
|
| 3 |
+
# For Hugging Face Spaces, add these as Secrets in the Space settings
|
| 4 |
+
|
| 5 |
+
SUPABASE_URL=http://supabasekong-ggosk0kkwsw8swcwsooo8o48.16.170.15.157.sslip.io
|
| 6 |
+
SUPABASE_KEY=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTc2MzYzNDg0MCwiZXhwIjo0OTE5MzA4NDQwLCJyb2xlIjoiYW5vbiJ9.73mWaXstDrk1wQGYaWMSi2-GWSb4_MvOXMwtM96sjCI
|
| 7 |
+
|
| 8 |
+
# Admin Credentials (Optional - defaults are set in app.py)
|
| 9 |
+
# ADMIN_USERNAME=admin
|
| 10 |
+
# ADMIN_PASSWORD=your_secure_password
|
Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
# Install system dependencies
|
| 6 |
+
RUN apt-get update && apt-get install -y \
|
| 7 |
+
libsndfile1 \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
+
# Copy requirements and install Python dependencies
|
| 11 |
+
COPY requirements.txt .
|
| 12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
+
|
| 14 |
+
# Copy application files
|
| 15 |
+
COPY app.py .
|
| 16 |
+
COPY supabase_schema.sql .
|
| 17 |
+
|
| 18 |
+
# Expose port
|
| 19 |
+
EXPOSE 7860
|
| 20 |
+
|
| 21 |
+
# Set environment variables
|
| 22 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 23 |
+
ENV GRADIO_SERVER_PORT=7860
|
| 24 |
+
|
| 25 |
+
# Run the application
|
| 26 |
+
CMD ["python", "app.py"]
|