Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
import random as r
|
3 |
-
|
4 |
def add2List(num):
|
|
|
5 |
num=int(num)
|
6 |
for i in range(num):
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
|
11 |
-
iface = gr.Interface(fn=add2List, inputs="text", outputs="text")
|
12 |
-
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import random as r
|
3 |
+
|
4 |
def add2List(num):
|
5 |
+
aList=[]
|
6 |
num=int(num)
|
7 |
for i in range(num):
|
8 |
+
soom=r.randint(1,99)
|
9 |
+
aList.append(soom)
|
10 |
+
return aList
|
11 |
|
12 |
+
iface = gr.Interface(fn=add2List, inputs="text", outputs="text")
|
13 |
+
iface.launch()
|