import gradio as gr | |
aList = [] | |
bList = [] | |
def add2List(nam): | |
num =int(num) | |
aList.append(num) | |
bList.append(num) | |
return aList,bList | |
iface = gr.Interface(fn=add2List, inputs="text", outputs=["text","text"]) | |
iface.launch() |
import gradio as gr | |
aList = [] | |
bList = [] | |
def add2List(nam): | |
num =int(num) | |
aList.append(num) | |
bList.append(num) | |
return aList,bList | |
iface = gr.Interface(fn=add2List, inputs="text", outputs=["text","text"]) | |
iface.launch() |