Spaces:
Sleeping
Sleeping
Update app.py from anycoder
Browse files
app.py
CHANGED
|
@@ -127,33 +127,4 @@ demo.launch(
|
|
| 127 |
{"label": "Built with anycoder", "url": "https://huggingface.co/spaces/akhaliq/anycoder"},
|
| 128 |
{"label": "Gradio", "url": "https://gradio.app"}
|
| 129 |
]
|
| 130 |
-
)
|
| 131 |
-
|
| 132 |
-
=== Dockerfile ===
|
| 133 |
-
# Use an official Python runtime as a parent image
|
| 134 |
-
# slim version is smaller and more secure
|
| 135 |
-
FROM python:3.11-slim
|
| 136 |
-
|
| 137 |
-
# Set the working directory in the container
|
| 138 |
-
WORKDIR /app
|
| 139 |
-
|
| 140 |
-
# Install system dependencies if needed (rarely needed for pure Gradio, but good practice)
|
| 141 |
-
# RUN apt-get update && apt-get install -y --no-install-recommends gcc
|
| 142 |
-
|
| 143 |
-
# Copy the current directory contents into the container at /app
|
| 144 |
-
COPY app.py .
|
| 145 |
-
|
| 146 |
-
# Install any needed packages specified in requirements (or directly here)
|
| 147 |
-
# We install directly to avoid generating a separate requirements.txt file as per instructions,
|
| 148 |
-
# though in production a requirements.txt is preferred.
|
| 149 |
-
RUN pip install --no-cache-dir gradio
|
| 150 |
-
|
| 151 |
-
# Make port 7860 available to the world outside this container
|
| 152 |
-
# Gradio's default port
|
| 153 |
-
EXPOSE 7860
|
| 154 |
-
|
| 155 |
-
# Define environment variable
|
| 156 |
-
# ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 157 |
-
|
| 158 |
-
# Run app.py when the container launches
|
| 159 |
-
CMD ["python", "app.py"]
|
|
|
|
| 127 |
{"label": "Built with anycoder", "url": "https://huggingface.co/spaces/akhaliq/anycoder"},
|
| 128 |
{"label": "Gradio", "url": "https://gradio.app"}
|
| 129 |
]
|
| 130 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|