Spaces:
Runtime error
Runtime error
missing the strict typings of c# I'm usually used to
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def image_generator(character:str, sceneDescription:str)-> Image: #it's importan
|
|
23 |
try:
|
24 |
# call the image_generation_tool tool with a text prompt
|
25 |
image = image_generation_tool(f"{character} in {sceneDescription}")
|
26 |
-
img = Image.open(BytesIO(
|
27 |
return img
|
28 |
except Exception as e:
|
29 |
return f"Error fetching image for given inputs: {str(e)}"
|
|
|
23 |
try:
|
24 |
# call the image_generation_tool tool with a text prompt
|
25 |
image = image_generation_tool(f"{character} in {sceneDescription}")
|
26 |
+
img = Image.open(BytesIO(image.content))
|
27 |
return img
|
28 |
except Exception as e:
|
29 |
return f"Error fetching image for given inputs: {str(e)}"
|