Update app.py
Browse files
app.py
CHANGED
|
@@ -201,9 +201,11 @@ def geometry(index):
|
|
| 201 |
values = forward_net.get_geometry(index)
|
| 202 |
return plotly_fig(values)
|
| 203 |
|
|
|
|
| 204 |
forward_net = Network("16forward_structure.json", "16forward_weights.h5")
|
| 205 |
|
| 206 |
-
def simple_analysis(index):
|
|
|
|
| 207 |
return forward_net.analysis(index)
|
| 208 |
|
| 209 |
def simple_synthesis(index):
|
|
|
|
| 201 |
values = forward_net.get_geometry(index)
|
| 202 |
return plotly_fig(values)
|
| 203 |
|
| 204 |
+
global forward_net
|
| 205 |
forward_net = Network("16forward_structure.json", "16forward_weights.h5")
|
| 206 |
|
| 207 |
+
def simple_analysis(index):
|
| 208 |
+
global forward_net
|
| 209 |
return forward_net.analysis(index)
|
| 210 |
|
| 211 |
def simple_synthesis(index):
|