Spaces:
Paused
Paused
WeixuanYuan
commited on
Commit
•
6b134fc
1
Parent(s):
e1aad43
Update app_chatbot.py
Browse files- app_chatbot.py +3 -2
app_chatbot.py
CHANGED
@@ -3,5 +3,6 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
7 |
-
demo.
|
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
# 指定有权限的路径
|
7 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text", flagging_dir="/home/user/flagged")
|
8 |
+
demo.launch()
|