rynmurdock commited on
Commit
19f103b
1 Parent(s): eeadab2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def next_image():
61
  "rynmurdock/zahir:49ebb1916c4baae35884ebfa16b092cf45d086c1913b53f62bb07d575cdbe683",
62
  input={"prompt": prompt,}
63
  )
64
- response = requests.get(url)
65
  image = Image.open(BytesIO(response.content))
66
 
67
  embs.append(torch.tensor(urlopen(pooled_embeds).read().decode('utf-8').split(', ')))
@@ -101,7 +101,7 @@ def next_image():
101
  "rynmurdock/zahir:49ebb1916c4baae35884ebfa16b092cf45d086c1913b53f62bb07d575cdbe683",
102
  input={"prompt": prompt, 'im_emb': pickle.dumps(im_emb)}
103
  )
104
- response = requests.get(url)
105
  image = Image.open(BytesIO(response.content))
106
 
107
 
 
61
  "rynmurdock/zahir:49ebb1916c4baae35884ebfa16b092cf45d086c1913b53f62bb07d575cdbe683",
62
  input={"prompt": prompt,}
63
  )
64
+ response = requests.get(image)
65
  image = Image.open(BytesIO(response.content))
66
 
67
  embs.append(torch.tensor(urlopen(pooled_embeds).read().decode('utf-8').split(', ')))
 
101
  "rynmurdock/zahir:49ebb1916c4baae35884ebfa16b092cf45d086c1913b53f62bb07d575cdbe683",
102
  input={"prompt": prompt, 'im_emb': pickle.dumps(im_emb)}
103
  )
104
+ response = requests.get(image)
105
  image = Image.open(BytesIO(response.content))
106
 
107