Update callbackmanager.py
Browse files- callbackmanager.py +2 -2
callbackmanager.py
CHANGED
@@ -56,9 +56,9 @@ system_instructions = """
|
|
56 |
"""
|
57 |
|
58 |
# Initialize Inference Client - Ensure YOUR_HF_TOKEN is set in environment variables or replace with your actual token
|
59 |
-
HF_TOKEN = os.getenv("
|
60 |
if not HF_TOKEN:
|
61 |
-
raise ValueError("
|
62 |
client = InferenceClient(api_key=HF_TOKEN)
|
63 |
model_name = "meta-llama/Llama-3.3-70B-Instruct" # Specify the model to use
|
64 |
|
|
|
56 |
"""
|
57 |
|
58 |
# Initialize Inference Client - Ensure YOUR_HF_TOKEN is set in environment variables or replace with your actual token
|
59 |
+
HF_TOKEN = os.getenv("HF_TOKEN") # Or replace with your actual token string
|
60 |
if not HF_TOKEN:
|
61 |
+
raise ValueError("HF_TOKEN environment variable not set. Please set your Hugging Face API token.")
|
62 |
client = InferenceClient(api_key=HF_TOKEN)
|
63 |
model_name = "meta-llama/Llama-3.3-70B-Instruct" # Specify the model to use
|
64 |
|