Spaces:
Sleeping
Sleeping
add HF_TOKEN_INFERENCE_API
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import json
|
2 |
import time
|
3 |
from itertools import count, islice
|
@@ -17,7 +18,7 @@ from utils import StringIteratorIO
|
|
17 |
|
18 |
|
19 |
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
20 |
-
client = InferenceClient(model_id)
|
21 |
|
22 |
session = requests.Session()
|
23 |
empty_dataframe = pd.DataFrame({"1": [], "2": [], "3": []})
|
|
|
1 |
+
import os
|
2 |
import json
|
3 |
import time
|
4 |
from itertools import count, islice
|
|
|
18 |
|
19 |
|
20 |
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
21 |
+
client = InferenceClient(model_id, token=os.environ.get("HF_TOKEN_INFERENCE_API"))
|
22 |
|
23 |
session = requests.Session()
|
24 |
empty_dataframe = pd.DataFrame({"1": [], "2": [], "3": []})
|