Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,16 +78,10 @@ def slow_echo(inputs, chatbot):
|
|
| 78 |
def setup_gradio_interface():
|
| 79 |
demo = gr.ChatInterface(
|
| 80 |
slow_echo,
|
| 81 |
-
chatbot=gr.Chatbot(height=500),
|
| 82 |
type="messages",
|
| 83 |
-
title="🌷 Lucky Vicky 員瑛
|
| 84 |
description="輸入你的煩惱或生活小事,讓員瑛用她的正向思考和Lucky魔法幫你轉念吧 ✨"
|
| 85 |
)
|
| 86 |
return demo
|
| 87 |
|
| 88 |
-
# 啟動主程式
|
| 89 |
-
if __name__ == "__main__":
|
| 90 |
-
demo = setup_gradio_interface()
|
| 91 |
-
port = 7865
|
| 92 |
-
demo.queue()
|
| 93 |
-
demo.launch(server_name="0.0.0.0", server_port=port)
|
|
|
|
| 78 |
def setup_gradio_interface():
|
| 79 |
demo = gr.ChatInterface(
|
| 80 |
slow_echo,
|
| 81 |
+
chatbot=gr.Chatbot(height=500, type="messages"), # ✅ 補上 type
|
| 82 |
type="messages",
|
| 83 |
+
title="🌷 Lucky Vicky 員瑛思考生成器",
|
| 84 |
description="輸入你的煩惱或生活小事,讓員瑛用她的正向思考和Lucky魔法幫你轉念吧 ✨"
|
| 85 |
)
|
| 86 |
return demo
|
| 87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|