perler commited on
Commit
3307a1b
1 Parent(s): a8c8566

path/file type from gradio is strange

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -58,7 +58,7 @@ def main():
58
  Inference takes about 2 minutes.
59
  '''
60
 
61
- def convert_to_ply(): # input_point_cloud_upload: str):
62
 
63
  # add absolute path to import dirs
64
  import sys
@@ -68,8 +68,8 @@ def main():
68
  import os
69
  os.chdir('ppsurf')
70
 
71
- print('Inputs:', input_point_cloud_upload)
72
- input_shape = input_point_cloud_upload.value
73
  if not input_shape.endswith('.ply'):
74
  # load file
75
  from ppsurf.source.occupancy_data_module import OccupancyDataModule
@@ -107,7 +107,7 @@ def main():
107
  input_point_cloud_upload.upload(
108
  fn=convert_to_ply,
109
  inputs=[
110
- # input_point_cloud_upload,
111
  ],
112
  outputs=[
113
  # input_point_cloud_viewer, # not available here
 
58
  Inference takes about 2 minutes.
59
  '''
60
 
61
+ def convert_to_ply(input_point_cloud_upload: str):
62
 
63
  # add absolute path to import dirs
64
  import sys
 
68
  import os
69
  os.chdir('ppsurf')
70
 
71
+ print('Inputs:', input_point_cloud_upload, type(input_point_cloud_upload))
72
+ input_shape = input_point_cloud_upload
73
  if not input_shape.endswith('.ply'):
74
  # load file
75
  from ppsurf.source.occupancy_data_module import OccupancyDataModule
 
107
  input_point_cloud_upload.upload(
108
  fn=convert_to_ply,
109
  inputs=[
110
+ input_point_cloud_upload,
111
  ],
112
  outputs=[
113
  # input_point_cloud_viewer, # not available here