chollada commited on
Commit
e33b9e0
1 Parent(s): f99fb1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -1,10 +1,13 @@
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
  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