Replicate the app from the image.
To upload files, please first save the app
import streamlit as st
from PIL import Image, ImageDraw
# Create a new image with a white background
width = 800
height = 600
image = Image.new('RGB', (width, height), 'white')
draw = ImageDraw.Draw(image)
# Draw shapes
# Black square with circle
draw.rectangle([50, 50, 200, 200], outline='black', width=2)
draw.ellipse([50, 150, 150, 250], outline='black', width=2)
draw.ellipse([80, 180, 100, 200], outline='black', width=2)
# Green square
draw.rectangle([250, 50, 400, 200], outline='green', width=2)
# Red square
draw.rectangle([450, 50, 600, 200], outline='red', width=2)
# Small black square
draw.rectangle([50, 300, 150, 350], outline='black', width=2)
# Blue rectangle
draw.rectangle([200, 300, 400, 350], outline='blue', width=2)
# Add text
draw.text((350, 400), "Hello", fill='black', size=20)
# Display the image in Streamlit
st.image(image)
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?