Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
aList = []
|
3 |
+
bList = []
|
4 |
+
def add2List(num):
|
5 |
+
num = int(num)
|
6 |
+
aList.append(num)
|
7 |
+
bList.append(num)
|
8 |
+
bList.sort()
|
9 |
+
return aList, bList
|
10 |
+
|
11 |
+
iface = gr.Interface(fn=add2List, inputs="text", outputs=["text","text"])
|
12 |
+
iface.launch()
|