computing / app.py
suphansa's picture
Update app.py
663c014
raw
history blame contribute delete
No virus
419 Bytes
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()