Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import os
|
2 |
import torch
|
3 |
import gradio as gr
|
@@ -19,6 +20,7 @@ def get_temp_path():
|
|
19 |
output_path = f"data/gradio_temp/{timestamp}/"
|
20 |
return output_path
|
21 |
|
|
|
22 |
def scene_generate(rgb,num_coarse_views,num_mcs_views,mcs_rect_w,mcs_steps):
|
23 |
# coarse
|
24 |
vistadream.scene = Gaussian_Scene(cfg)
|
|
|
1 |
+
import spaces
|
2 |
import os
|
3 |
import torch
|
4 |
import gradio as gr
|
|
|
20 |
output_path = f"data/gradio_temp/{timestamp}/"
|
21 |
return output_path
|
22 |
|
23 |
+
@spaces.GPU(duration=120)
|
24 |
def scene_generate(rgb,num_coarse_views,num_mcs_views,mcs_rect_w,mcs_steps):
|
25 |
# coarse
|
26 |
vistadream.scene = Gaussian_Scene(cfg)
|