hamdanuk commited on
Commit
6a09878
·
verified ·
1 Parent(s): 7ef502b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -11
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
- **Llama2 Inference API**
20
 
21
  import requests
22
-
23
- API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-2-13b-chat-hf"
24
- headers = {"Authorization": "Bearer hf_xxxxxxx"}
25
-
26
- def query(payload):
27
- response = requests.post(API_URL, headers=headers, json=payload)
28
- return response.json()
29
-
30
- output = query({"inputs": "What is the capital of France?",})
31
- print (output[0]['generated_text'])
 
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