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