Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from huggingface_hub import InferenceClient
|
|
3 |
import spaces
|
4 |
import os
|
5 |
|
6 |
-
client = InferenceClient("meta-llama/
|
7 |
messages=[]
|
8 |
client.chat_completion(messages, max_tokens=1024)
|
9 |
|
|
|
3 |
import spaces
|
4 |
import os
|
5 |
|
6 |
+
client = InferenceClient("meta-llama/Llama-2-70b-chat-hf", token=f"Bearer {os.environ.get('API_KEY')}")
|
7 |
messages=[]
|
8 |
client.chat_completion(messages, max_tokens=1024)
|
9 |
|