Commit
•
8917e98
1
Parent(s):
fe322b0
Create example.sh
Browse files- example.sh +10 -0
example.sh
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
curl "https://<your own inference endpoint>.endpoints.huggingface.cloud" \
|
3 |
+
-X POST \
|
4 |
+
-H "Accept: application/json" \
|
5 |
+
-H "Authorization: Bearer hf_<your own token>" \
|
6 |
+
-H "Content-Type: application/json" \
|
7 |
+
-d '{
|
8 |
+
"inputs": "underwater footage, clownfishes swimming around coral",
|
9 |
+
"parameters": {}
|
10 |
+
}' > output.json
|