Spaces:
Sleeping
Sleeping
Commit
·
d7ecb3b
1
Parent(s):
8b0164d
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ headers = {"Authorization": f"Bearer {hf_token}"}
|
|
35 |
# response = requests.post(api_url, headers=headers, json={"inputs": texts, "options":{"wait_for_model":True}})
|
36 |
# return response.json()
|
37 |
|
38 |
-
|
39 |
def query(texts):
|
40 |
response = requests.post(api_url, headers=headers, json={"inputs": texts})
|
41 |
result = response.json()
|
|
|
35 |
# response = requests.post(api_url, headers=headers, json={"inputs": texts, "options":{"wait_for_model":True}})
|
36 |
# return response.json()
|
37 |
|
38 |
+
#@retry(tries=3, delay=10)
|
39 |
def query(texts):
|
40 |
response = requests.post(api_url, headers=headers, json={"inputs": texts})
|
41 |
result = response.json()
|