Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
bList = []
|
4 |
def add2List(num):
|
|
|
|
|
5 |
num = int(num)
|
6 |
-
|
7 |
-
|
|
|
|
|
8 |
bList.sort()
|
9 |
return aList, bList
|
10 |
|
|
|
1 |
import gradio as gr
|
2 |
+
import random as r
|
|
|
3 |
def add2List(num):
|
4 |
+
aList = []
|
5 |
+
bList = []
|
6 |
num = int(num)
|
7 |
+
for i in range(num):
|
8 |
+
rand=r.randint(1,99)
|
9 |
+
aList.append(rand)
|
10 |
+
bList.append(rand)
|
11 |
bList.sort()
|
12 |
return aList, bList
|
13 |
|