mylove commited on
Commit
e19bcf7
·
1 Parent(s): 8318216

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -1,10 +1,14 @@
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
 
 
1
  import gradio as gr
2
+ import random as r
3
+
4
  def add2List(num):
5
+ aList = []
6
+ bList = []
7
  num = int(num)
8
+ for i in range(num):
9
+ rand=r.randint(1,99)
10
+ aList.append(rand)
11
+ bList.append(rand)
12
  bList.sort()
13
  return aList, bList
14