Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import random as r
|
|
|
3 |
def add2List(num,start,end):
|
4 |
alist = []
|
5 |
blist = []
|
@@ -7,11 +8,11 @@ def add2List(num,start,end):
|
|
7 |
start = int(start)
|
8 |
end = int(end)
|
9 |
for i in range(num):
|
10 |
-
rand=r.randint(
|
11 |
aList.append(num)
|
12 |
bList.append(num)
|
13 |
bList.sort()
|
14 |
return aList, bList
|
15 |
-
|
16 |
-
iface = gr.Interface(fn=add2List,
|
17 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import random as r
|
3 |
+
|
4 |
def add2List(num,start,end):
|
5 |
alist = []
|
6 |
blist = []
|
|
|
8 |
start = int(start)
|
9 |
end = int(end)
|
10 |
for i in range(num):
|
11 |
+
rand=r.randint(start,num)
|
12 |
aList.append(num)
|
13 |
bList.append(num)
|
14 |
bList.sort()
|
15 |
return aList, bList
|
16 |
+
|
17 |
+
iface = gr.Interface(fn=add2List, input=["text","text","text"] outputs=["text","text"])
|
18 |
iface.launch()
|