Spaces:
Sleeping
Sleeping
update errors
Browse files
app.py
CHANGED
@@ -233,7 +233,7 @@ async def generate(URL, query):
|
|
233 |
global cache_URL, db, qa, cache
|
234 |
|
235 |
if URL == "" or query == "":
|
236 |
-
return "
|
237 |
else:
|
238 |
try:
|
239 |
product_id = get_product_id(URL)
|
@@ -274,7 +274,7 @@ async def generate(URL, query):
|
|
274 |
# Process result
|
275 |
return res["result"]
|
276 |
except:
|
277 |
-
return "
|
278 |
|
279 |
|
280 |
# Gradio
|
|
|
233 |
global cache_URL, db, qa, cache
|
234 |
|
235 |
if URL == "" or query == "":
|
236 |
+
return "Input kosong"
|
237 |
else:
|
238 |
try:
|
239 |
product_id = get_product_id(URL)
|
|
|
274 |
# Process result
|
275 |
return res["result"]
|
276 |
except:
|
277 |
+
return "Gagal mendapatkan review dari URL"
|
278 |
|
279 |
|
280 |
# Gradio
|