Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
with gr.Blocks() as myApp:
|
| 4 |
+
with gr.Row():
|
| 5 |
+
with gr.Column(scale=1):
|
| 6 |
+
a = gr.Textbox(label='ตัวเลข A:')
|
| 7 |
+
b = gr.Textbox(label='ตัวเลข B:')
|
| 8 |
+
btn = gr.Button(label='คำนวณ')
|
| 9 |
+
with gr.Column(scale=1):
|
| 10 |
+
out = gr.Textbox(label='ผลลัพธ์')
|
| 11 |
+
|
| 12 |
+
myApp.launch()
|
| 13 |
+
|