File size: 548 Bytes
0538e13
 
a77d5ce
0538e13
4696b7e
 
05449d9
4696b7e
05449d9
 
 
 
 
a6f6ba9
 
b11787d
 
 
 
05449d9
 
94a201b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
import random as rd

def add2List(num,startRand,endRand):
    aList = []
    bList = []
    num = int(num)
    startRand = int(startRand)
    endRand = int(endRand)

    for i in range (num):
        #r = rd.randint(1,100)
        r =  rd.randint (startRand,endRand)
        aList.append(r)
        bList.append(r)
    bList.sort()
    MAX = max(aList)
    MIN = min(aList) 
    return aList,bList,MAX,MIN

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