Spaces:
Sleeping
Sleeping
yuhei_kajima
commited on
Commit
·
33c1a1e
1
Parent(s):
a0b2f3c
Add Auth
Browse files
app.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
def greet(name):
|
4 |
-
return "
|
|
|
5 |
|
6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
-
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
|
4 |
def greet(name):
|
5 |
+
return "こんにちは " + name + "さん!! \n僕はパスカルくんだよ"
|
6 |
+
|
7 |
|
8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
+
|
10 |
+
|
11 |
+
if __name__ == "__main__":
|
12 |
+
iface.launch(auth=("username", "password"))
|