import gradio as gr | |
from PIL import Image | |
def show_pattern(): | |
return Image.open("IMG.webp") # thay bằng đúng tên file của bạn | |
with gr.Blocks(css="body { background-color: black; }", title="Chart Patterns") as app: | |
gr.Image(show_pattern, elem_id="pattern-image", show_label=False) | |
app.launch() |