Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
-
aList= []
|
|
|
3 |
def add2List(num):
|
4 |
num = int(num)
|
5 |
aList.append(num)
|
6 |
-
|
|
|
|
|
7 |
|
8 |
iface = gr.Interface(fn=add2List, inputs="text", outputs="text")
|
9 |
iface.launch()
|
|
|
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")
|
12 |
iface.launch()
|