Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -206,9 +206,8 @@ def point(img, object):
|
|
206 |
)
|
207 |
|
208 |
@spaces.GPU(duration=10)
|
209 |
-
def localized_query(
|
210 |
-
|
211 |
-
yield repr(points), {"text": "..."}
|
212 |
|
213 |
|
214 |
js = ""
|
@@ -326,7 +325,7 @@ with gr.Blocks(title="moondream vl (new)", css=css, js=js) as demo:
|
|
326 |
scale=4,
|
327 |
)
|
328 |
submit = gr.Button("Submit")
|
329 |
-
img =
|
330 |
submit.click(localized_query, [img, prompt], [output, thought])
|
331 |
prompt.submit(localized_query, [img, prompt], [output, thought])
|
332 |
else:
|
|
|
206 |
)
|
207 |
|
208 |
@spaces.GPU(duration=10)
|
209 |
+
def localized_query(ann_image, question):
|
210 |
+
yield repr(ann_image), {"text": "..."}
|
|
|
211 |
|
212 |
|
213 |
js = ""
|
|
|
325 |
scale=4,
|
326 |
)
|
327 |
submit = gr.Button("Submit")
|
328 |
+
img = gr.AnnotatedImage()
|
329 |
submit.click(localized_query, [img, prompt], [output, thought])
|
330 |
prompt.submit(localized_query, [img, prompt], [output, thought])
|
331 |
else:
|