vikhyatk commited on
Commit
ed4ba53
·
verified ·
1 Parent(s): c5cbb2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -211,7 +211,7 @@ def localized_query(img, x, y, question):
211
  yield "", {"text": "", "entities": []}, gr.update(visible=False, value=None)
212
  return
213
 
214
- answer = moondream.query(img, prompt, spatial_refs=[(x, y)])["answer"]
215
 
216
  w, h = img.size
217
  x, y = x * w, y * h
 
211
  yield "", {"text": "", "entities": []}, gr.update(visible=False, value=None)
212
  return
213
 
214
+ answer = moondream.query(img, question, spatial_refs=[(x, y)])["answer"]
215
 
216
  w, h = img.size
217
  x, y = x * w, y * h