gaspar-avit commited on
Commit
6fcd637
·
1 Parent(s): 19dace0

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -190,7 +190,7 @@ def query_generate(text):
190
 
191
  response = requests.post(API_URL, headers=headers, json=payload)
192
 
193
- if isinstance(response.content):
194
 
195
  # if 'error' in response.content.decode("utf-8"):
196
  payload = {"inputs": f"{text}",
 
190
 
191
  response = requests.post(API_URL, headers=headers, json=payload)
192
 
193
+ if isinstance(response.content, str):
194
 
195
  # if 'error' in response.content.decode("utf-8"):
196
  payload = {"inputs": f"{text}",