Spaces:
Sleeping
Sleeping
Emma Scharfmann commited on
Commit Β·
bc4bd27
1
Parent(s): 7a7515d
add api
Browse files- Dockerfile +1 -1
- README.md +10 -16
Dockerfile
CHANGED
|
@@ -9,4 +9,4 @@ COPY main.py .
|
|
| 9 |
|
| 10 |
EXPOSE 7860
|
| 11 |
|
| 12 |
-
CMD ["uvicorn", "
|
|
|
|
| 9 |
|
| 10 |
EXPOSE 7860
|
| 11 |
|
| 12 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
README.md
CHANGED
|
@@ -1,17 +1,11 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
reads `requests.jsonl` to approve/reject those.
|
| 12 |
-
|
| 13 |
-
This directory only contains `app.py` β merge it into the existing Space
|
| 14 |
-
repo's deployment (same `Dockerfile`/`requirements.txt` you already have;
|
| 15 |
-
`requirements.txt` here is for reference, no new dependencies were added).
|
| 16 |
-
|
| 17 |
Required Space secret: `HF_TOKEN` (write-scoped, org `hugging-science`) β unchanged.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Request Api
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: yellow
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
| 8 |
+
license: apache-2.0
|
| 9 |
+
short_description: request api for huggingscience website
|
| 10 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
Required Space secret: `HF_TOKEN` (write-scoped, org `hugging-science`) β unchanged.
|