Spaces:
Running
on
Zero
Running
on
Zero
add spaces as dependency
Browse files
app.py
CHANGED
@@ -155,6 +155,10 @@ def track_current_time(evt: TimeUpdate):
|
|
155 |
def track_current_timeline_and_time(evt: TimelineChange):
|
156 |
return evt.timeline, evt.time
|
157 |
|
|
|
|
|
|
|
|
|
158 |
with gr.Blocks() as demo:
|
159 |
with gr.Row():
|
160 |
img = gr.Image(interactive=True, label="Image")
|
|
|
155 |
def track_current_timeline_and_time(evt: TimelineChange):
|
156 |
return evt.timeline, evt.time
|
157 |
|
158 |
+
@spaces.GPU
|
159 |
+
def run_inference(img):
|
160 |
+
|
161 |
+
|
162 |
with gr.Blocks() as demo:
|
163 |
with gr.Row():
|
164 |
img = gr.Image(interactive=True, label="Image")
|