Howarddddd commited on
Commit
25b3c60
·
verified ·
1 Parent(s): 84cda64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
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