Spaces:
Sleeping
Sleeping
final v2
Browse files- Dockerfile +1 -0
- README.md +7 -4
- requirements.txt +1 -2
Dockerfile
CHANGED
|
@@ -5,4 +5,5 @@ COPY ./requirements.txt /code/requirements.txt
|
|
| 5 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 6 |
COPY . /code
|
| 7 |
EXPOSE 7860
|
|
|
|
| 8 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 5 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 6 |
COPY . /code
|
| 7 |
EXPOSE 7860
|
| 8 |
+
# ¡ESTA LÍNEA ES CRUCIAL! Debe usar uvicorn.
|
| 9 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🌸
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Clasificador de Orquídeas
|
| 3 |
emoji: 🌸
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: teal
|
| 6 |
+
sdk: docker # <-- ¡MUY IMPORTANTE! Debe ser 'docker'.
|
| 7 |
+
app_file: app.py # <-- Le dice a Docker qué archivo es el principal.
|
| 8 |
+
app_port: 7860 # <-- Le dice a Docker en qué puerto buscar.
|
| 9 |
+
license: mit
|
| 10 |
---
|
requirements.txt
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
# Contenido de: requirements.txt
|
| 2 |
-
|
| 3 |
fastapi
|
| 4 |
-
uvicorn
|
| 5 |
python-multipart
|
| 6 |
torch
|
| 7 |
torchvision
|
|
|
|
| 1 |
# Contenido de: requirements.txt
|
|
|
|
| 2 |
fastapi
|
| 3 |
+
uvicorn[standard]
|
| 4 |
python-multipart
|
| 5 |
torch
|
| 6 |
torchvision
|