Spaces:
Paused
Paused
Commit ·
d56d0b4
1
Parent(s): e87158e
add token
Browse files
app.py
CHANGED
|
@@ -4,11 +4,12 @@ from huggingface_hub import InferenceClient
|
|
| 4 |
from pydantic import BaseModel
|
| 5 |
from typing import List, Tuple
|
| 6 |
import asyncio
|
|
|
|
| 7 |
|
| 8 |
# Initialisation du client Hugging Face
|
| 9 |
token = os.environ.get("HF_TOKEN")
|
| 10 |
-
|
| 11 |
-
client = InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct", token=token)
|
| 12 |
|
| 13 |
|
| 14 |
# Initialisation de FastAPI
|
|
|
|
| 4 |
from pydantic import BaseModel
|
| 5 |
from typing import List, Tuple
|
| 6 |
import asyncio
|
| 7 |
+
import os
|
| 8 |
|
| 9 |
# Initialisation du client Hugging Face
|
| 10 |
token = os.environ.get("HF_TOKEN")
|
| 11 |
+
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta", token=token)
|
| 12 |
+
# client = InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct", token=token)
|
| 13 |
|
| 14 |
|
| 15 |
# Initialisation de FastAPI
|