Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,7 @@ def array_to_image_path(image_array):
|
|
50 |
img.save(filename)
|
51 |
return os.path.abspath(filename)
|
52 |
|
|
|
53 |
def run_showui(image, query):
|
54 |
"""Main function for inference."""
|
55 |
image_path = array_to_image_path(image)
|
|
|
50 |
img.save(filename)
|
51 |
return os.path.abspath(filename)
|
52 |
|
53 |
+
@spaces.GPU
|
54 |
def run_showui(image, query):
|
55 |
"""Main function for inference."""
|
56 |
image_path = array_to_image_path(image)
|