abdullahfurquan commited on
Commit
2bb1c4a
·
verified ·
1 Parent(s): 4ccaf6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def generate_image_tool(prompt: str) -> Image:
32
  image = image_generation_tool(prompt) # Get PIL Image
33
  file_path = "generated_image.jpg"
34
  image.save(file_path) # Save it
35
- return file_path
36
  except Exception as e:
37
  return f"Error generating image: {str(e)}"
38
 
 
32
  image = image_generation_tool(prompt) # Get PIL Image
33
  file_path = "generated_image.jpg"
34
  image.save(file_path) # Save it
35
+ return image
36
  except Exception as e:
37
  return f"Error generating image: {str(e)}"
38