ccm commited on
Commit
7759c3d
1 Parent(s): 6911ba8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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):