Spaces:
Running
Running
Xiaolong-Wang
commited on
Commit
•
c5ed979
1
Parent(s):
41e4cda
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
3 |
def greet(name):
|
4 |
-
|
|
|
5 |
|
6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
user_name = ''
|
4 |
+
|
5 |
def greet(name):
|
6 |
+
user_name += name
|
7 |
+
return "Hello " + user_name + "!!"
|
8 |
|
9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
iface.launch()
|