Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
4 |
-
return "Hello " + name + "!!"
|
5 |
-
|
6 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
aList=[]
|
3 |
+
def add2List(num):
|
4 |
+
num=int(num)
|
5 |
+
aList.append(num)
|
6 |
+
return aList
|
7 |
|
8 |
+
iface = gr.Interface(fn=add2List, inputs="text", outputs="text")
|
|
|
|
|
|
|
9 |
iface.launch()
|