fffiloni commited on
Commit
9c1c36c
·
verified ·
1 Parent(s): ce190ea

Ready for Zero

Browse files
Files changed (1) hide show
  1. run_gradio.py +2 -0
run_gradio.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import numpy as np
3
  from PIL import Image, ImageDraw
@@ -341,6 +342,7 @@ def undo_last_point(ref, base):
341
 
342
 
343
  # Main function to run the image processing
 
344
  def run_local(ref, base, *args, progress=gr.Progress(track_tqdm=True)):
345
  image = Image.fromarray(base)
346
  ref_image = Image.fromarray(ref)
 
1
+ import spaces
2
  import gradio as gr
3
  import numpy as np
4
  from PIL import Image, ImageDraw
 
342
 
343
 
344
  # Main function to run the image processing
345
+ @spaces.GPU
346
  def run_local(ref, base, *args, progress=gr.Progress(track_tqdm=True)):
347
  image = Image.fromarray(base)
348
  ref_image = Image.fromarray(ref)