Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import os
|
|
| 3 |
import shutil
|
| 4 |
import time
|
| 5 |
import uuid
|
|
|
|
| 6 |
import unicodedata
|
| 7 |
from io import BytesIO
|
| 8 |
from threading import Timer
|
|
@@ -219,7 +220,7 @@ In browser, ignore any sign-in popups while they don't interfere with the elemen
|
|
| 219 |
</general_guidelines>
|
| 220 |
""".replace("<<current_date>>", datetime.now().strftime("%A, %d-%B-%Y"))
|
| 221 |
|
| 222 |
-
|
| 223 |
def draw_marker_on_image(image_copy, click_coordinates):
|
| 224 |
x, y = click_coordinates
|
| 225 |
draw = ImageDraw.Draw(image_copy)
|
|
|
|
| 3 |
import shutil
|
| 4 |
import time
|
| 5 |
import uuid
|
| 6 |
+
import spaces #[zeroGPU Spaces]
|
| 7 |
import unicodedata
|
| 8 |
from io import BytesIO
|
| 9 |
from threading import Timer
|
|
|
|
| 220 |
</general_guidelines>
|
| 221 |
""".replace("<<current_date>>", datetime.now().strftime("%A, %d-%B-%Y"))
|
| 222 |
|
| 223 |
+
@spaces.GPU
|
| 224 |
def draw_marker_on_image(image_copy, click_coordinates):
|
| 225 |
x, y = click_coordinates
|
| 226 |
draw = ImageDraw.Draw(image_copy)
|