chollada commited on
Commit
f99fb1f
1 Parent(s): 16f8ef2

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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()