File size: 419 Bytes
db286db
ba65874
399c27e
ba65874
 
 
53b4de4
 
ba65874
888242d
ba65874
 
e275766
 
db286db
53b4de4
db286db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr
import random as r
def add2List(num,start,end):
    aList = []
    bList = []
    num = int(num) 
    start = int(start)
    end = int(end)
    for i in range(num):
        rand=r.randint(start,end)
        aList.append(rand)
        bList.append(rand)
    bList.sort()
    return aList, bList

iface = gr.Interface(fn=add2List, inputs=["text","text","text"], outputs=["text","text"])
iface.launch()