Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ import torch
|
|
| 5 |
from PIL import Image, ImageEnhance
|
| 6 |
from pygltflib import GLTF2
|
| 7 |
from pygltflib.utils import ImageFormat, Texture, Material, Image as GLTFImage
|
|
|
|
| 8 |
import spaces
|
| 9 |
|
| 10 |
|
|
@@ -33,7 +34,7 @@ def run_inference(prompt, stable_diffusion_model, num_inference_steps, guidance_
|
|
| 33 |
|
| 34 |
os.system(inference_command)
|
| 35 |
|
| 36 |
-
|
| 37 |
os.system("python Scripts/to_3d_model.py")
|
| 38 |
|
| 39 |
|
|
|
|
| 5 |
from PIL import Image, ImageEnhance
|
| 6 |
from pygltflib import GLTF2
|
| 7 |
from pygltflib.utils import ImageFormat, Texture, Material, Image as GLTFImage
|
| 8 |
+
import sys
|
| 9 |
import spaces
|
| 10 |
|
| 11 |
|
|
|
|
| 34 |
|
| 35 |
os.system(inference_command)
|
| 36 |
|
| 37 |
+
# view it in 3d
|
| 38 |
os.system("python Scripts/to_3d_model.py")
|
| 39 |
|
| 40 |
|