Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ logger = logging.getLogger(__name__)
|
|
24 |
# Configuration
|
25 |
API_URL = "https://api-inference.huggingface.co/models/Qwen/Qwen2.5-Coder-32B"
|
26 |
headers = {
|
27 |
-
"Authorization": f"Bearer {
|
28 |
"Content-Type": "application/json"
|
29 |
}
|
30 |
|
|
|
24 |
# Configuration
|
25 |
API_URL = "https://api-inference.huggingface.co/models/Qwen/Qwen2.5-Coder-32B"
|
26 |
headers = {
|
27 |
+
"Authorization": f"Bearer {os.getenv('HF_API_TOKEN')}",
|
28 |
"Content-Type": "application/json"
|
29 |
}
|
30 |
|