Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import os
|
|
6 |
api_url = "https://api-inference.huggingface.co/models/Qwen/Qwen-2.5-72B"
|
7 |
|
8 |
# Retrieve the token from the environment
|
9 |
-
headers = {"Authorization": f"Bearer {os.getenv('
|
10 |
|
11 |
# Define a function to send prompts to the model and get responses
|
12 |
def query(prompt):
|
|
|
6 |
api_url = "https://api-inference.huggingface.co/models/Qwen/Qwen-2.5-72B"
|
7 |
|
8 |
# Retrieve the token from the environment
|
9 |
+
headers = {"Authorization": f"Bearer {os.getenv('HF_Token')}"}
|
10 |
|
11 |
# Define a function to send prompts to the model and get responses
|
12 |
def query(prompt):
|