Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ session = requests.Session()
|
|
12 |
session.verify = False # Disable SSL verification
|
13 |
|
14 |
# Load the token from Hugging Face secrets
|
15 |
-
HUGGINGFACE_TOKEN = os.
|
16 |
|
17 |
# Set up the text generation pipeline with the token
|
18 |
pipe = pipeline("text-generation", model="meta-llama/Llama-3.1-8B-Instruct",
|
|
|
12 |
session.verify = False # Disable SSL verification
|
13 |
|
14 |
# Load the token from Hugging Face secrets
|
15 |
+
HUGGINGFACE_TOKEN = os.environ.get("hf_token") # Set the default to empty if not found
|
16 |
|
17 |
# Set up the text generation pipeline with the token
|
18 |
pipe = pipeline("text-generation", model="meta-llama/Llama-3.1-8B-Instruct",
|