Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def draw_point(image, xy):
|
|
| 105 |
x, y = xy[0] * w, xy[1] * h
|
| 106 |
draw = ImageDraw.Draw(img)
|
| 107 |
r = max(6, int(min(w, h) * 0.02))
|
| 108 |
-
for color, width in ((255, 255, 255,
|
| 109 |
draw.ellipse([x - r, y - r, x + r, y + r], outline=color, width=width)
|
| 110 |
draw.line([x - 1.6 * r, y, x + 1.6 * r, y], fill=color, width=width)
|
| 111 |
draw.line([x, y - 1.6 * r, x, y + 1.6 * r], fill=color, width=width)
|
|
|
|
| 105 |
x, y = xy[0] * w, xy[1] * h
|
| 106 |
draw = ImageDraw.Draw(img)
|
| 107 |
r = max(6, int(min(w, h) * 0.02))
|
| 108 |
+
for color, width in (((255, 255, 255), 5), ((255, 70, 0), 3)):
|
| 109 |
draw.ellipse([x - r, y - r, x + r, y + r], outline=color, width=width)
|
| 110 |
draw.line([x - 1.6 * r, y, x + 1.6 * r, y], fill=color, width=width)
|
| 111 |
draw.line([x, y - 1.6 * r, x, y + 1.6 * r], fill=color, width=width)
|