Spaces:
Sleeping
Sleeping
davidgasquez
commited on
Commit
·
a11c746
1
Parent(s):
a992c2c
:art:
Browse files- Dockerfile +2 -1
- README.md +1 -1
- app.py +2 -2
Dockerfile
CHANGED
@@ -10,4 +10,5 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
10 |
|
11 |
COPY --chown=user . /app
|
12 |
|
13 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
10 |
|
11 |
COPY --chown=user . /app
|
12 |
|
13 |
+
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
14 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -6,7 +6,7 @@ colorTo: red
|
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: mit
|
9 |
-
app_port:
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: mit
|
9 |
+
app_port: 8080
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from textual_serve.server import Server
|
2 |
|
3 |
-
server = Server("python -m textual")
|
4 |
|
5 |
-
server.serve()
|
|
|
1 |
from textual_serve.server import Server
|
2 |
|
3 |
+
server = Server("python -m textual", host="0.0.0.0", port=8080)
|
4 |
|
5 |
+
server.serve()
|