Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,12 +2,12 @@ import os
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
client = InferenceClient(
|
| 5 |
-
provider="
|
| 6 |
-
api_key=os.environ["
|
| 7 |
)
|
| 8 |
|
| 9 |
stream = client.chat.completions.create(
|
| 10 |
-
model="
|
| 11 |
messages=[],
|
| 12 |
temperature=0.5,
|
| 13 |
top_p=0.7,
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
client = InferenceClient(
|
| 5 |
+
provider="auto",
|
| 6 |
+
api_key=os.environ["HF_TOKEN"],
|
| 7 |
)
|
| 8 |
|
| 9 |
stream = client.chat.completions.create(
|
| 10 |
+
model="meta-llama/Llama-3.2-1B-Instruct",
|
| 11 |
messages=[],
|
| 12 |
temperature=0.5,
|
| 13 |
top_p=0.7,
|