Spaces:
Runtime error
Runtime error
Download app.py from raktermaksudjai/computing2: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/raktermaksudjai/computing2/resolve/main/app.py
- Command line
-
hf download hf://spaces/raktermaksudjai/computing2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/raktermaksudjai/computing2/resolve/main/app.py
545 Bytes
| 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() |