ndamulelonemakh commited on
Commit
af2b76d
·
verified ·
1 Parent(s): 5d8d24d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = query({"inputs": description})
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