Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
from texify.inference import batch_inference
|
3 |
from texify.model.model import load_model
|
4 |
from texify.model.processor import load_processor
|
@@ -12,7 +13,7 @@ Join us: TeamTonic is always making cool demos! Join our active builder's comm
|
|
12 |
|
13 |
model = load_model()
|
14 |
processor = load_processor()
|
15 |
-
|
16 |
def process_image(img):
|
17 |
# img = Image.fromarray(img)
|
18 |
|
|
|
1 |
import gradio as gr
|
2 |
+
+import spaces
|
3 |
from texify.inference import batch_inference
|
4 |
from texify.model.model import load_model
|
5 |
from texify.model.processor import load_processor
|
|
|
13 |
|
14 |
model = load_model()
|
15 |
processor = load_processor()
|
16 |
+
+@spaces.GPU
|
17 |
def process_image(img):
|
18 |
# img = Image.fromarray(img)
|
19 |
|