Spaces:
Runtime error
Runtime error
Commit ·
2ba4910
1
Parent(s): 00b72fa
better tutorial
Browse files- tutorial.md +10 -2
tutorial.md
CHANGED
|
@@ -15,8 +15,16 @@ docker run -it -p 7860:7860 fastapi
|
|
| 15 |
curl -X POST http://localhost:7860/reply -H 'Content-Type: application/json' -d '{"msg": "hi"}'
|
| 16 |
```
|
| 17 |
|
| 18 |
-
##
|
| 19 |
|
| 20 |
See: https://huggingface.co/docs/hub/api
|
| 21 |
|
| 22 |
-
Access info for a space: https://huggingface.co/api/spaces/ChihChiu29/mychatbot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
curl -X POST http://localhost:7860/reply -H 'Content-Type: application/json' -d '{"msg": "hi"}'
|
| 16 |
```
|
| 17 |
|
| 18 |
+
## Huggingface API
|
| 19 |
|
| 20 |
See: https://huggingface.co/docs/hub/api
|
| 21 |
|
| 22 |
+
Access info for a space: https://huggingface.co/api/spaces/ChihChiu29/mychatbot
|
| 23 |
+
|
| 24 |
+
## Directly access the server on Huggingface space
|
| 25 |
+
|
| 26 |
+
Use the embedded address, for example:
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
curl -X POST https://chihchiu29-mychatbot.hf.space/reply -H 'Content-Type: application/json' -d '{"msg": "hi"}'
|
| 30 |
+
```
|