Spaces:
Runtime error
Runtime error
import gradio as gr | |
alist=[] | |
def add2list(num): | |
num=int(num) | |
alist.append(num) | |
return alist | |
iface = gr.Interface(fn=add2list, inputs="text", outputs="text") | |
iface.launch() |