ybelkada commited on
Commit
77cc066
·
1 Parent(s): 822e468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,8 +10,8 @@ FLAN_API_URL = "https://api-inference.huggingface.co/models/google/flan-t5-xxl"
10
 
11
  headers = {"Authorization": f"Bearer {TOKEN}"}
12
 
13
- def query(payload, api_url):
14
- response = requests.post(api_url, headers=headers, json={"inputs":payload})
15
  return response.json()
16
 
17
 
 
10
 
11
  headers = {"Authorization": f"Bearer {TOKEN}"}
12
 
13
+ def query(text, api_url):
14
+ response = requests.post(api_url, headers=headers, json={"inputs":text})
15
  return response.json()
16
 
17