Spaces:
Runtime error
Runtime error
gaspar-avit
commited on
Commit
·
95a5558
1
Parent(s):
2074242
Upload app.py
Browse files
app.py
CHANGED
@@ -190,14 +190,12 @@ def query_generate(text):
|
|
190 |
|
191 |
response = requests.post(API_URL, headers=headers, json=payload)
|
192 |
|
193 |
-
_="""
|
194 |
if 'error' in response.content.decode("utf-8"):
|
195 |
payload = {"inputs": f"{text}",
|
196 |
"options": {"wait_for_model": True},
|
197 |
}
|
198 |
response = requests.post(API_URL, headers=headers, json=payload)
|
199 |
-
|
200 |
-
|
201 |
return response.content
|
202 |
|
203 |
@st.experimental_memo(persist=False, show_spinner=False, suppress_st_warning=True)
|
|
|
190 |
|
191 |
response = requests.post(API_URL, headers=headers, json=payload)
|
192 |
|
|
|
193 |
if 'error' in response.content.decode("utf-8"):
|
194 |
payload = {"inputs": f"{text}",
|
195 |
"options": {"wait_for_model": True},
|
196 |
}
|
197 |
response = requests.post(API_URL, headers=headers, json=payload)
|
198 |
+
|
|
|
199 |
return response.content
|
200 |
|
201 |
@st.experimental_memo(persist=False, show_spinner=False, suppress_st_warning=True)
|