Spaces:
Runtime error
Runtime error
Logan Zoellner
commited on
Commit
•
bd85979
1
Parent(s):
3990f68
different space?
Browse files
app.py
CHANGED
@@ -8,15 +8,15 @@ import io
|
|
8 |
|
9 |
|
10 |
def generate_image(text):
|
11 |
-
dalle = gr.Interface.load("spaces/kuprel/min-dalle")
|
12 |
|
13 |
print("calling interface",text)
|
14 |
-
|
15 |
|
16 |
-
img=dalle.fns[0].fn(seed,psi)
|
17 |
-
header, encoded = img.split(",", 1)
|
18 |
-
data = b64decode(encoded)
|
19 |
-
image = Image.open(io.BytesIO(data))
|
20 |
|
21 |
return image
|
22 |
|
|
|
8 |
|
9 |
|
10 |
def generate_image(text):
|
11 |
+
#dalle = gr.Interface.load("spaces/kuprel/min-dalle")
|
12 |
|
13 |
print("calling interface",text)
|
14 |
+
img=dalle(text)
|
15 |
|
16 |
+
#img=dalle.fns[0].fn(seed,psi)
|
17 |
+
#header, encoded = img.split(",", 1)
|
18 |
+
#data = b64decode(encoded)
|
19 |
+
#image = Image.open(io.BytesIO(data))
|
20 |
|
21 |
return image
|
22 |
|