vikhyatk commited on
Commit
c4cb39e
·
verified ·
1 Parent(s): c6c8487

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -206,9 +206,8 @@ def point(img, object):
206
  )
207
 
208
  @spaces.GPU(duration=10)
209
- def localized_query(img_prompt, question):
210
- img, points = img_prompt["image"], img_prompt["points"]
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 = ImagePrompter(show_label=False)
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: