Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
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 |
+
return aList, bList
|
9 |
|
10 |
+
iface = gr.Interface(fn=add2List, inputs="text", outputs="text","text")
|
11 |
iface.launch()
|