kensvin commited on
Commit
c034fa1
1 Parent(s): f87f358

update errors

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 "Empty input"
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 "URL tidak valid"
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