Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,10 +18,11 @@ logger = logging.getLogger(__name__)
|
|
18 |
with open("config.toml") as f:
|
19 |
config = toml.load(f)
|
20 |
|
21 |
-
#API_URL =
|
|
|
22 |
API_URL = 'https://ojciectadeusz-fastapi-inference-qwen2-5-coder-32-a0ab504.hf.space/v1/chat/completions'
|
23 |
headers = {
|
24 |
-
"Authorization": f"Bearer {
|
25 |
"Content-Type": "application/json"
|
26 |
}
|
27 |
|
|
|
18 |
with open("config.toml") as f:
|
19 |
config = toml.load(f)
|
20 |
|
21 |
+
#API_URL = os.getenv('API_URL')
|
22 |
+
#API_TOKEN = os.getenv('API_TOKEN')
|
23 |
API_URL = 'https://ojciectadeusz-fastapi-inference-qwen2-5-coder-32-a0ab504.hf.space/v1/chat/completions'
|
24 |
headers = {
|
25 |
+
"Authorization": f"Bearer {os.getenv('HF_API_TOKEN')}",
|
26 |
"Content-Type": "application/json"
|
27 |
}
|
28 |
|