Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,25 +10,32 @@ pinned: false
|
|
| 10 |
|
| 11 |
On this organization, you can find the following:
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
**Llama2 Interactive UI**
|
| 14 |
- Llama2 7B Chat - [Interactive UI](https://huggingface.co/spaces/huggingface-projects/llama-2-7b-chat)
|
| 15 |
- Llama2 13B Chat - [Interactive UI](https://huggingface.co/spaces/huggingface-projects/llama-2-13b-chat)
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
-
**
|
| 20 |
|
| 21 |
import requests
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
|
|
|
| 32 |
|
| 33 |
|
| 34 |
|
|
|
|
| 10 |
|
| 11 |
On this organization, you can find the following:
|
| 12 |
|
| 13 |
+
**Llama3 Chat**
|
| 14 |
+
- Llama3 - [Interactive UI](https://huggingface.co/chat/)
|
| 15 |
+
Change the current model to Llama3
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
**Llama2 Interactive UI**
|
| 20 |
- Llama2 7B Chat - [Interactive UI](https://huggingface.co/spaces/huggingface-projects/llama-2-7b-chat)
|
| 21 |
- Llama2 13B Chat - [Interactive UI](https://huggingface.co/spaces/huggingface-projects/llama-2-13b-chat)
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
+
**Llama3 Inference API**
|
| 26 |
|
| 27 |
import requests
|
| 28 |
+
|
| 29 |
+
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
|
| 30 |
+
headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
|
| 31 |
+
|
| 32 |
+
def query(payload):
|
| 33 |
+
response = requests.post(API_URL, headers=headers, json=payload)
|
| 34 |
+
return response.json()
|
| 35 |
+
|
| 36 |
+
output = query({
|
| 37 |
+
"inputs": "What is the capital of france?",
|
| 38 |
+
})
|
| 39 |
|
| 40 |
|
| 41 |
|