Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
CHANGED
|
@@ -1,2 +1,26 @@
|
|
| 1 |
FROM huggingface/autotrain-advanced:latest
|
| 2 |
CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && autotrain app --host 0.0.0.0 --port 7860 --workers 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM huggingface/autotrain-advanced:latest
|
| 2 |
CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && autotrain app --host 0.0.0.0 --port 7860 --workers 1
|
| 3 |
+
|
| 4 |
+
# Use the Hugging Face Docker image as a parent image
|
| 5 |
+
FROM huggingface/autotrain-advanced:latest
|
| 6 |
+
|
| 7 |
+
# Install Gradio
|
| 8 |
+
RUN pip install gradio
|
| 9 |
+
|
| 10 |
+
# Set the working directory
|
| 11 |
+
WORKDIR /app
|
| 12 |
+
|
| 13 |
+
# Install git
|
| 14 |
+
RUN apt-get update && apt-get install -y git
|
| 15 |
+
|
| 16 |
+
# Clone the repository
|
| 17 |
+
RUN git clone https://github.com/ankitVP77/Blind-Motion-Deblurring-for-Legible-License-Plates-using-Deep-Learning.git /app
|
| 18 |
+
|
| 19 |
+
# Install dependencies
|
| 20 |
+
RUN pip install --no-cache-dir tensorflow numpy opencv-python-headless matplotlib
|
| 21 |
+
|
| 22 |
+
# Expose the port the app runs on
|
| 23 |
+
EXPOSE 7860
|
| 24 |
+
|
| 25 |
+
# Command to launch Gradio interface
|
| 26 |
+
CMD ["python", "app.py"]
|