prateekbh commited on
Commit
23f3832
·
verified ·
1 Parent(s): b15ce46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -38,7 +38,7 @@ class StopOnTokens(StoppingCriteria):
38
  return False
39
 
40
  def getProductDetails(history, image):
41
- product_description=getImageDescription(history, image)
42
  # clients = InferenceClient("google/gemma-7b")
43
  # rand_val = random.randint(1, 1111111111111111)
44
  if not history:
@@ -180,8 +180,8 @@ with gr.Blocks(css=css) as demo:
180
 
181
  response_handler = (
182
  getProductDetails,
183
- [image],
184
- []
185
  )
186
 
187
  background_remover_handler = (
 
38
  return False
39
 
40
  def getProductDetails(history, image):
41
+ product_description=getImageDescription(image)
42
  # clients = InferenceClient("google/gemma-7b")
43
  # rand_val = random.randint(1, 1111111111111111)
44
  if not history:
 
180
 
181
  response_handler = (
182
  getProductDetails,
183
+ [chat, image],
184
+ [chat]
185
  )
186
 
187
  background_remover_handler = (