rbanfield commited on
Commit
c5fa69d
·
1 Parent(s): 77a1cda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -138,17 +138,14 @@ def predict(input_file):
138
 
139
  html_content = f'<a href="{download_url}">Download output file</a>'
140
 
141
- return (
142
- "Inference has finished. Click the download button to access the output file",
143
- html_content,
144
- )
145
 
146
 
147
  demo = gr.Interface(
148
  title="Point Cloud Segmentation-Trimble Cloud",
149
  fn=predict,
150
  inputs=gr.File(file_types=[".las"], file_count="single"),
151
- outputs=[gr.Textbox(), "html"],
152
  examples=["test.las"],
153
  cache_examples=False,
154
  description="This is a technology demonstration of Trimble AI's 3D Point Cloud Segmentation running on Trimble Cloud Core's Pegasus Processing Framework. The point cloud is uploaded on behalf of the user into Pegasus, then the result is offered as a downloadable link.",
 
138
 
139
  html_content = f'<a href="{download_url}">Download output file</a>'
140
 
141
+ return html_content
 
 
 
142
 
143
 
144
  demo = gr.Interface(
145
  title="Point Cloud Segmentation-Trimble Cloud",
146
  fn=predict,
147
  inputs=gr.File(file_types=[".las"], file_count="single"),
148
+ outputs=["html"],
149
  examples=["test.las"],
150
  cache_examples=False,
151
  description="This is a technology demonstration of Trimble AI's 3D Point Cloud Segmentation running on Trimble Cloud Core's Pegasus Processing Framework. The point cloud is uploaded on behalf of the user into Pegasus, then the result is offered as a downloadable link.",