perler commited on
Commit
ea84346
1 Parent(s): 06038cf

try git clone in main

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -5,6 +5,7 @@ from __future__ import annotations
5
  import sys
6
  import os
7
  import datetime
 
8
 
9
  import gradio as gr
10
  import spaces
@@ -23,7 +24,6 @@ def run_on_gpu(input_point_cloud: gr.utils.NamedString,
23
  type(gen_subsample_manifold_iter), type(gen_refine_iter))
24
 
25
  sys.path.append(os.path.abspath('ppsurf'))
26
- import subprocess
27
  import uuid
28
 
29
  in_file = '{}'.format(input_point_cloud.name)
@@ -79,6 +79,9 @@ def run_on_gpu(input_point_cloud: gr.utils.NamedString,
79
 
80
 
81
  def main():
 
 
 
82
  description_header = '# PPSurf: Combining Patches and Point Convolutions for Detailed Surface Reconstruction'
83
 
84
  description_col0 = '''## [Github](https://github.com/cg-tuwien/ppsurf)
 
5
  import sys
6
  import os
7
  import datetime
8
+ import subprocess
9
 
10
  import gradio as gr
11
  import spaces
 
24
  type(gen_subsample_manifold_iter), type(gen_refine_iter))
25
 
26
  sys.path.append(os.path.abspath('ppsurf'))
 
27
  import uuid
28
 
29
  in_file = '{}'.format(input_point_cloud.name)
 
79
 
80
 
81
  def main():
82
+ # git submodule doesn't work in Gradio, so we clone it here
83
+ subprocess.run(['git', 'clone', 'https://github.com/cg-tuwien/ppsurf.git'])
84
+
85
  description_header = '# PPSurf: Combining Patches and Point Convolutions for Detailed Surface Reconstruction'
86
 
87
  description_col0 = '''## [Github](https://github.com/cg-tuwien/ppsurf)