ysharma HF staff commited on
Commit
e7d12f5
1 Parent(s): 6181e1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,11 +4,11 @@ import os
4
  import requests
5
  from huggingface_hub import AsyncInferenceClient
6
 
7
- hf_token = os.getenv('HF_TOKEN')
8
  api_url = os.getenv('API_URL')
9
  #api_url_nostream = os.getenv('API_URL_NOSTREAM')
10
  #headers = {'Content-Type': 'application/json',}
11
- headers = {"Authorization": f"Bearer {hf_token}"}
12
  client = AsyncInferenceClient(api_url)
13
 
14
 
 
4
  import requests
5
  from huggingface_hub import AsyncInferenceClient
6
 
7
+ HF_TOKEN = os.getenv('HF_TOKEN')
8
  api_url = os.getenv('API_URL')
9
  #api_url_nostream = os.getenv('API_URL_NOSTREAM')
10
  #headers = {'Content-Type': 'application/json',}
11
+ headers = {"Authorization": f"Bearer {HF_TOKEN}"}
12
  client = AsyncInferenceClient(api_url)
13
 
14