Logan Zoellner commited on
Commit
e39f36d
1 Parent(s): 6c25c70

maybe right format now?

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -13,14 +13,15 @@ def generate_image(seed,psi):
13
 
14
  print("calling interface",seed,psi)
15
  img=iface(seed,psi)
 
16
 
17
  #img=iface.fns[0].fn(seed,psi)
18
  #wrong format, gah! convert to numpy array
19
- header, encoded = img.split(",", 1)
20
- data = b64decode(encoded)
21
- image = Image.open(io.BytesIO(data))
22
- image_np = np.array(image)
23
- return image_np
24
 
25
  def generate_model(img):
26
 
 
13
 
14
  print("calling interface",seed,psi)
15
  img=iface(seed,psi)
16
+ return img
17
 
18
  #img=iface.fns[0].fn(seed,psi)
19
  #wrong format, gah! convert to numpy array
20
+ #header, encoded = img.split(",", 1)
21
+ #data = b64decode(encoded)
22
+ #image = Image.open(io.BytesIO(data))
23
+ #image_np = np.array(image)
24
+ #return image_np
25
 
26
  def generate_model(img):
27