Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import torch
|
@@ -19,6 +20,7 @@ DEFAULT_NEGATIVE_PROMPT = (
|
|
19 |
)
|
20 |
|
21 |
|
|
|
22 |
def run(*args):
|
23 |
id_image = args[0]
|
24 |
supp_images = args[1:4]
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import torch
|
|
|
20 |
)
|
21 |
|
22 |
|
23 |
+
@spaces.GPU
|
24 |
def run(*args):
|
25 |
id_image = args[0]
|
26 |
supp_images = args[1:4]
|