Update app.py
Browse files
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 {
|
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)
|