vikhyatk commited on
Commit
4e84543
·
verified ·
1 Parent(s): 3c806f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -216,9 +216,9 @@ def localized_query(img, x, y, question):
216
  img_clone = img.copy()
217
  draw = ImageDraw.Draw(img_clone)
218
  draw.ellipse(
219
- (x - 3, y - 3, x + 3, y + 3),
220
  fill="red",
221
- outline="red",
222
  )
223
 
224
  yield "", {"text": "", "entities": []}, gr.update(visible=True, value=img_clone)
@@ -240,17 +240,6 @@ css = """
240
  .chain-of-thought span.textspan {
241
  padding-right: 0;
242
  }
243
-
244
- #life-canvas {
245
- /*position: fixed;
246
- top: 0;
247
- left: 0;
248
- width: 100%;
249
- height: 100%;
250
- z-index: -1;
251
- opacity: 0.3;*/
252
- }
253
-
254
  """
255
 
256
  with gr.Blocks(title="moondream vl (new)", css=css, js=js) as demo:
 
216
  img_clone = img.copy()
217
  draw = ImageDraw.Draw(img_clone)
218
  draw.ellipse(
219
+ (x - 5, y - 5, x + 5, y + 5),
220
  fill="red",
221
+ outline="blue",
222
  )
223
 
224
  yield "", {"text": "", "entities": []}, gr.update(visible=True, value=img_clone)
 
240
  .chain-of-thought span.textspan {
241
  padding-right: 0;
242
  }
 
 
 
 
 
 
 
 
 
 
 
243
  """
244
 
245
  with gr.Blocks(title="moondream vl (new)", css=css, js=js) as demo: