cal-sample / app.py
sonobit's picture
Create app.py
dacde11
raw
history blame
390 Bytes
import gradio as gr
with gr.Blocks() as myApp:
with gr.Row():
with gr.Column(scale=1):
a = gr.Textbox(label='ตัวเลข A:')
b = gr.Textbox(label='ตัวเลข B:')
btn = gr.Button(label='คำนวณ')
with gr.Column(scale=1):
out = gr.Textbox(label='ผลลัพธ์')
myApp.launch()