import gradio as gr alist=[] def greet(nam): num=int(num) return alist iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch()