NathanBiliToponi commited on
Commit
abfa19f
·
verified ·
1 Parent(s): 5cd7bab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -5,11 +5,15 @@ from structural_engine_demo import detect_network
5
 
6
 
7
  def run_demo(n_points):
8
- pts = np.random.rand(n_points, 3)
9
- result = detect_network(pts)
 
 
 
10
  metrics = result["metrics"]
11
 
12
  text = ""
 
13
  for k, v in metrics.items():
14
  text += f"{k}: {v}\n"
15
 
@@ -23,4 +27,4 @@ demo = gr.Interface(
23
  title="Structural Network Engine Demo"
24
  )
25
 
26
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
5
 
6
 
7
  def run_demo(n_points):
8
+
9
+ pts = np.random.rand(int(n_points), 3)
10
+
11
+ result = detect_network(points=pts)
12
+
13
  metrics = result["metrics"]
14
 
15
  text = ""
16
+
17
  for k, v in metrics.items():
18
  text += f"{k}: {v}\n"
19
 
 
27
  title="Structural Network Engine Demo"
28
  )
29
 
30
+ demo.launch()