Spaces:
Sleeping
Sleeping
updated path
Browse files
app.py
CHANGED
@@ -208,7 +208,7 @@ def create_scene(allscenes, plane_idx):
|
|
208 |
return temp_file
|
209 |
|
210 |
def load_mesh_max(scene_path):
|
211 |
-
dict_path =
|
212 |
with open(dict_path, 'rb') as f:
|
213 |
dicts = pickle.load(f)
|
214 |
with open(scene_path, 'rb') as f:
|
@@ -224,7 +224,7 @@ def load_mesh_max(scene_path):
|
|
224 |
|
225 |
|
226 |
def load_mesh_min(scene_path):
|
227 |
-
dict_path =
|
228 |
with open(dict_path, 'rb') as f:
|
229 |
dicts = pickle.load(f)
|
230 |
with open(scene_path, 'rb') as f:
|
@@ -245,7 +245,7 @@ def reset_outputs():
|
|
245 |
# Returns a list of None, one for each 3D model output to reset them
|
246 |
return [None] * 10 # Adjust to the total number of Model3D components you have
|
247 |
|
248 |
-
examples = glob.glob("
|
249 |
|
250 |
with gr.Blocks() as demo:
|
251 |
with gr.Row():
|
|
|
208 |
return temp_file
|
209 |
|
210 |
def load_mesh_max(scene_path):
|
211 |
+
dict_path = scene_path.split('/')[-1].split('.')[0][:-7] + "_dicts.pickle"
|
212 |
with open(dict_path, 'rb') as f:
|
213 |
dicts = pickle.load(f)
|
214 |
with open(scene_path, 'rb') as f:
|
|
|
224 |
|
225 |
|
226 |
def load_mesh_min(scene_path):
|
227 |
+
dict_path = scene_path.split('/')[-1].split('.')[0][:-7] + "_dicts.pickle"
|
228 |
with open(dict_path, 'rb') as f:
|
229 |
dicts = pickle.load(f)
|
230 |
with open(scene_path, 'rb') as f:
|
|
|
245 |
# Returns a list of None, one for each 3D model output to reset them
|
246 |
return [None] * 10 # Adjust to the total number of Model3D components you have
|
247 |
|
248 |
+
examples = glob.glob("*_planes.pickle")
|
249 |
|
250 |
with gr.Blocks() as demo:
|
251 |
with gr.Row():
|