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)),label='เลือก 1 หมายเลข') with gr.column(scale=1): out = gr. textbox(label='ผลลัพธ์') myApp.launch()