Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|
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
|