Spaces:
Sleeping
Sleeping
han-xudong
commited on
Commit
·
1abe2f9
1
Parent(s):
5edc3fa
fix: server name and port
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@
|
|
| 4 |
FingerNet Demo App
|
| 5 |
"""
|
| 6 |
|
|
|
|
| 7 |
import numpy as np
|
| 8 |
import trimesh
|
| 9 |
import pandas as pd
|
|
@@ -185,4 +186,4 @@ with gr.Blocks(title="FingerNet Demo") as demo:
|
|
| 185 |
fn=predict_from_motion, inputs=inputs, outputs=[output_force, output_mesh]
|
| 186 |
)
|
| 187 |
|
| 188 |
-
demo.launch(server_name="
|
|
|
|
| 4 |
FingerNet Demo App
|
| 5 |
"""
|
| 6 |
|
| 7 |
+
import os
|
| 8 |
import numpy as np
|
| 9 |
import trimesh
|
| 10 |
import pandas as pd
|
|
|
|
| 186 |
fn=predict_from_motion, inputs=inputs, outputs=[output_force, output_mesh]
|
| 187 |
)
|
| 188 |
|
| 189 |
+
demo.launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)))
|