harishraju7 commited on
Commit
ed63720
·
verified ·
1 Parent(s): ebd027c

missing the strict typings of c# I'm usually used to

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(image_response.content))
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)}"