Spaces:
Sleeping
Sleeping
Fix: delay spaces import until after GPU functions are defined
Browse files- gradio_app.py +1 -0
gradio_app.py
CHANGED
@@ -44,6 +44,7 @@ from fastapi import FastAPI
|
|
44 |
from fastapi.staticfiles import StaticFiles
|
45 |
import uuid
|
46 |
import numpy as np
|
|
|
47 |
|
48 |
from hy3dshape.utils import logger
|
49 |
from hy3dpaint.convert_utils import create_glb_with_pbr_materials
|
|
|
44 |
from fastapi.staticfiles import StaticFiles
|
45 |
import uuid
|
46 |
import numpy as np
|
47 |
+
import spaces # needed for @spaces.GPU decorator
|
48 |
|
49 |
from hy3dshape.utils import logger
|
50 |
from hy3dpaint.convert_utils import create_glb_with_pbr_materials
|