Spaces:
Sleeping
Sleeping
BenBranyon
commited on
Commit
•
dabde3e
1
Parent(s):
61300f7
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def query(payload):
|
|
17 |
response = requests.request("POST", API_URL, headers=headers, data=data)
|
18 |
try:
|
19 |
data = json.loads(response.content.decode("utf-8"))
|
20 |
-
response = data[0]['generated_text']
|
21 |
return response
|
22 |
except:
|
23 |
return response
|
|
|
17 |
response = requests.request("POST", API_URL, headers=headers, data=data)
|
18 |
try:
|
19 |
data = json.loads(response.content.decode("utf-8"))
|
20 |
+
response = data[0]['generated_text']
|
21 |
return response
|
22 |
except:
|
23 |
return response
|