WingYip commited on
Commit
80771f6
·
verified ·
1 Parent(s): 47ff817

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -2,9 +2,6 @@ import gradio as gr
2
  from openai import OpenAI
3
  import os
4
 
5
- # 建議用環境變數儲存 API KEY,deploy 時從 HF Secrets 注入
6
- API_KEY = os.getenv("OPENROUTER_API_KEY", "sk-xxxxx") # 改為你的 openrouter API key
7
-
8
  # OpenRouter Client 設定
9
  client = OpenAI(
10
  base_url="https://openrouter.ai/api/v1",
@@ -36,5 +33,5 @@ gr.ChatInterface(
36
  fn=chatbot_reply,
37
  title="校園小老師 Chatbot",
38
  theme="soft",
39
- description="請輸入關於學校生活的問題,我會盡量幫你解答!",
40
  ).launch()
 
2
  from openai import OpenAI
3
  import os
4
 
 
 
 
5
  # OpenRouter Client 設定
6
  client = OpenAI(
7
  base_url="https://openrouter.ai/api/v1",
 
33
  fn=chatbot_reply,
34
  title="校園小老師 Chatbot",
35
  theme="soft",
36
+ description="請輸入關於學校生活的問題,我會盡量幫你解答!(提示:)",
37
  ).launch()