rynmurdock commited on
Commit
e6947db
1 Parent(s): 74bf4ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -28,15 +28,10 @@ calibrate_prompts = [
28
  'surrealist art',
29
  'a psychedelic, fractal view',
30
  'a beautiful collage',
31
- 'an intricate portrait',
32
- 'an impressionist painting',
33
  'abstract art',
34
  'an eldritch image',
35
  'a sketch',
36
  'a city full of darkness and graffiti',
37
- 'a black & white photo',
38
- 'a brilliant, timeless tarot card of the world',
39
- 'a photo of a woman',
40
  '',
41
  ]
42
 
@@ -99,7 +94,7 @@ def next_image():
99
 
100
  output = replicate.run(
101
  "rynmurdock/zahir:49ebb1916c4baae35884ebfa16b092cf45d086c1913b53f62bb07d575cdbe683",
102
- input={"prompt": prompt, 'im_emb': pickle.dumps(im_emb)}
103
  )
104
  response = requests.get(output['file1'])
105
  image = Image.open(BytesIO(response.content))
 
28
  'surrealist art',
29
  'a psychedelic, fractal view',
30
  'a beautiful collage',
 
 
31
  'abstract art',
32
  'an eldritch image',
33
  'a sketch',
34
  'a city full of darkness and graffiti',
 
 
 
35
  '',
36
  ]
37
 
 
94
 
95
  output = replicate.run(
96
  "rynmurdock/zahir:49ebb1916c4baae35884ebfa16b092cf45d086c1913b53f62bb07d575cdbe683",
97
+ input={"prompt": prompt, 'im_emb': im_emb.detach()}
98
  )
99
  response = requests.get(output['file1'])
100
  image = Image.open(BytesIO(response.content))