File size: 390 Bytes
dacde11
 
 
 
 
 
 
8ac0a40
dacde11
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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(value='คำนวณ')
        with gr.Column(scale=1):
            out = gr.Textbox(label='ผลลัพธ์')

myApp.launch()