Spaces:
Sleeping
Sleeping
Commit
·
19dd1b9
1
Parent(s):
5a3f658
fix token
Browse files
app.py
CHANGED
@@ -10,9 +10,10 @@ from prompts import detailed_genre_description_prompt, basic_prompt
|
|
10 |
import random
|
11 |
import os
|
12 |
from pathlib import Path
|
|
|
13 |
|
14 |
# Ensure you're logged in to Hugging Face
|
15 |
-
login(
|
16 |
|
17 |
client = OpenAI(
|
18 |
base_url="https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-70B-Instruct/v1",
|
|
|
10 |
import random
|
11 |
import os
|
12 |
from pathlib import Path
|
13 |
+
import os
|
14 |
|
15 |
# Ensure you're logged in to Hugging Face
|
16 |
+
login(os.getenv("HF_TOKEN"))
|
17 |
|
18 |
client = OpenAI(
|
19 |
base_url="https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-70B-Instruct/v1",
|