Spaces:
Build error
Build error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from PIL import Image, ImageDraw, ImageFont
|
2 |
+
|
3 |
+
# Define the text for each image
|
4 |
+
texts = ["AI Suggestion 1", "AI Suggestion 2", "AI Suggestion 3"]
|
5 |
+
|
6 |
+
# Create and save images
|
7 |
+
for i, text in enumerate(texts):
|
8 |
+
# Create an image with white background
|
9 |
+
img = Image.new('RGB', (300, 100), color='white')
|
10 |
+
d = ImageDraw.Draw(img)
|