Spaces:
Running
Running
upd
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import spaces #[uncomment to use ZeroGPU]
|
| 3 |
from gradio_image_annotation import image_annotator
|
| 4 |
from diffusers import StableDiffusionPipeline
|
| 5 |
import os
|
|
@@ -18,7 +18,7 @@ example_annotation = {
|
|
| 18 |
"boxes": [],
|
| 19 |
}
|
| 20 |
|
| 21 |
-
@spaces.GPU
|
| 22 |
def get_boxes_json(annotations):
|
| 23 |
print(annotations)
|
| 24 |
image = annotations["image"]
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
# import spaces #[uncomment to use ZeroGPU]
|
| 3 |
from gradio_image_annotation import image_annotator
|
| 4 |
from diffusers import StableDiffusionPipeline
|
| 5 |
import os
|
|
|
|
| 18 |
"boxes": [],
|
| 19 |
}
|
| 20 |
|
| 21 |
+
# @spaces.GPU
|
| 22 |
def get_boxes_json(annotations):
|
| 23 |
print(annotations)
|
| 24 |
image = annotations["image"]
|