Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
hg_app.py
CHANGED
|
@@ -193,8 +193,8 @@ def _gen_shape(
|
|
| 193 |
octree_resolution=octree_resolution
|
| 194 |
)[0]
|
| 195 |
|
| 196 |
-
|
| 197 |
-
|
| 198 |
mesh = FaceReducer()(mesh)
|
| 199 |
|
| 200 |
stats['number_of_faces'] = mesh.faces.shape[0]
|
|
@@ -453,6 +453,6 @@ if __name__ == '__main__':
|
|
| 453 |
app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
| 454 |
|
| 455 |
demo = build_app()
|
| 456 |
-
demo.queue(max_size=
|
| 457 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 458 |
uvicorn.run(app, host=IP, port=PORT)
|
|
|
|
| 193 |
octree_resolution=octree_resolution
|
| 194 |
)[0]
|
| 195 |
|
| 196 |
+
mesh = FloaterRemover()(mesh)
|
| 197 |
+
mesh = DegenerateFaceRemover()(mesh)
|
| 198 |
mesh = FaceReducer()(mesh)
|
| 199 |
|
| 200 |
stats['number_of_faces'] = mesh.faces.shape[0]
|
|
|
|
| 453 |
app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
| 454 |
|
| 455 |
demo = build_app()
|
| 456 |
+
demo.queue(max_size=9)
|
| 457 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 458 |
uvicorn.run(app, host=IP, port=PORT)
|