Spaces:
Running
on
Zero
Running
on
Zero
copy later
Browse files
app.py
CHANGED
@@ -38,8 +38,6 @@ def run_on_gpu(input_point_cloud: gr.utils.NamedString,
|
|
38 |
print('out_file:', out_file)
|
39 |
print('out_file_gradio:', out_file_gradio)
|
40 |
os.makedirs(out_dir, exist_ok=True)
|
41 |
-
import shutil
|
42 |
-
shutil.copyfile(src=out_file, dst=out_file_gradio)
|
43 |
|
44 |
model_path = 'models/ppsurf_50nn/version_0/checkpoints/last.ckpt'
|
45 |
|
@@ -66,8 +64,11 @@ def run_on_gpu(input_point_cloud: gr.utils.NamedString,
|
|
66 |
gr.Warning("Reconstruction failed:\n{}".format(e))
|
67 |
|
68 |
print('Finished inference at {}'.format(datetime.datetime.now()))
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
71 |
|
72 |
|
73 |
def main():
|
|
|
38 |
print('out_file:', out_file)
|
39 |
print('out_file_gradio:', out_file_gradio)
|
40 |
os.makedirs(out_dir, exist_ok=True)
|
|
|
|
|
41 |
|
42 |
model_path = 'models/ppsurf_50nn/version_0/checkpoints/last.ckpt'
|
43 |
|
|
|
64 |
gr.Warning("Reconstruction failed:\n{}".format(e))
|
65 |
|
66 |
print('Finished inference at {}'.format(datetime.datetime.now()))
|
67 |
+
|
68 |
+
import shutil
|
69 |
+
shutil.copyfile(src=out_file, dst=out_file_gradio)
|
70 |
+
|
71 |
+
return out_file_gradio
|
72 |
|
73 |
|
74 |
def main():
|