File size: 353 Bytes
4c4fc7d 0cbf3f9 4c4fc7d 3e7dc6c 4c4fc7d 3e7dc6c 4c4fc7d 3e7dc6c |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from PIL import Image
# Load hình ảnh từ local
def show_pattern():
return Image.open("pattern.webp") # đổi tên đúng với file bạn upload
with gr.Blocks(title="Chart Patterns") as app:
gr.Markdown("## Popular Chart Patterns")
gr.Image(show_pattern, elem_id="pattern-image", show_label=False)
app.launch() |