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