import gradio as gr | |
import random as rd | |
with gr.Blocks() as myApp: | |
with gr.ROW(): | |
with gr.column(scale=1): | |
inp = gr.Radio (CHOICES=list(range(10)),lable= 'เลือก 1 หมายเลข' | |
with gr.column(scale=1): | |
out= gr.textbox(lable='ผลลัพธ์') | |
myApp.launch() |