OjciecTadeusz commited on
Commit
4606f14
·
verified ·
1 Parent(s): 042bc2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 = config["llm"]["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 {config['llm']['api_key']}",
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