ccm commited on
Commit
4419092
1 Parent(s): d7616e0
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -2,12 +2,11 @@ import random
2
  import gradio
3
  import numpy
4
  import tensorflow
5
- import tensorflow.python.framework.ops
6
  import math
7
- # from tensorflow.python.framework.ops import disable_eager_execution
8
 
9
  # Becuase important
10
- tensorflow.python.framework.ops.disable_eager_execution()
11
 
12
  # Load the training and testing data
13
  load_data = numpy.load('data/train_test_split_data.npz') # Data saved by the VAE
@@ -30,7 +29,6 @@ all_box_shape = numpy.append(box_shape_train, box_shape_test, axis=0)
30
  all_data = numpy.reshape(allX, (len(allX), image_size, image_size, 1))
31
 
32
 
33
-
34
  def basic_box_array(image_size):
35
  A = numpy.zeros((int(image_size), int(image_size))) # Initializes A matrix with 0 values
36
  # Creates the outside edges of the box
 
2
  import gradio
3
  import numpy
4
  import tensorflow
 
5
  import math
6
+ from tensorflow.python.framework.ops import disable_eager_execution
7
 
8
  # Becuase important
9
+ disable_eager_execution()
10
 
11
  # Load the training and testing data
12
  load_data = numpy.load('data/train_test_split_data.npz') # Data saved by the VAE
 
29
  all_data = numpy.reshape(allX, (len(allX), image_size, image_size, 1))
30
 
31
 
 
32
  def basic_box_array(image_size):
33
  A = numpy.zeros((int(image_size), int(image_size))) # Initializes A matrix with 0 values
34
  # Creates the outside edges of the box