Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def generate_image(description, format, language):
|
|
19 |
# Create a random image with a size of 600x600 pixels and 3 color channels
|
20 |
# image = np.random.randint(0, 256, (600, 600, 3), dtype=np.uint8)
|
21 |
|
22 |
-
image_bytes =
|
23 |
image = Image.open(io.BytesIO(image_bytes))
|
24 |
print("type of imageis:", type(image))
|
25 |
|
|
|
19 |
# Create a random image with a size of 600x600 pixels and 3 color channels
|
20 |
# image = np.random.randint(0, 256, (600, 600, 3), dtype=np.uint8)
|
21 |
|
22 |
+
image_bytes = query_api({"inputs": description})
|
23 |
image = Image.open(io.BytesIO(image_bytes))
|
24 |
print("type of imageis:", type(image))
|
25 |
|