ashok2216 commited on
Commit
08479a3
·
verified ·
1 Parent(s): bacf95c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
  See the License for the specific language governing permissions and
13
  limitations under the License.'''
14
 
15
-
16
  import requests
17
  import json
18
  import pandas as pd
@@ -43,7 +43,7 @@ login(hf_token)
43
 
44
 
45
  API_URL = "https://api-inference.huggingface.co/models/google/tapas-base-finetuned-wtq"
46
- headers = {"Authorization": f"Bearer {HF_TOKEN}"}
47
 
48
  def query(payload):
49
  response = requests.post(API_URL, headers=headers, json=payload)
 
12
  See the License for the specific language governing permissions and
13
  limitations under the License.'''
14
 
15
+ import os
16
  import requests
17
  import json
18
  import pandas as pd
 
43
 
44
 
45
  API_URL = "https://api-inference.huggingface.co/models/google/tapas-base-finetuned-wtq"
46
+ headers = {"Authorization": f"Bearer {hf_token}"}
47
 
48
  def query(payload):
49
  response = requests.post(API_URL, headers=headers, json=payload)