Kim716 commited on
Commit
5ac78a3
·
verified ·
1 Parent(s): 53d7246
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -29,11 +29,12 @@ def generate_response(user_input):
29
  return completion.choices[0].message.content
30
 
31
  # 建立 Gradio 聊天介面
32
- demo = gr.Chatbot(
33
  fn=generate_response,
 
 
34
  title="我的 Groq Chatbot",
35
  description="與 AI 聊天吧!"
36
  )
37
 
38
- # 啟動介面
39
  demo.launch()
 
29
  return completion.choices[0].message.content
30
 
31
  # 建立 Gradio 聊天介面
32
+ demo = gr.Interface(
33
  fn=generate_response,
34
+ inputs="text",
35
+ outputs="text",
36
  title="我的 Groq Chatbot",
37
  description="與 AI 聊天吧!"
38
  )
39
 
 
40
  demo.launch()