DeepLearning101 commited on
Commit
2d99bfc
·
verified ·
1 Parent(s): f253795

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -2
src/streamlit_app.py CHANGED
@@ -38,7 +38,7 @@ genai.configure(api_key=api_key)
38
 
39
  # 1. 基礎設定與連結
40
  BASE_URL = "https://raw.githubusercontent.com/Deep-Learning-101/deep-learning-101.github.io/main/"
41
- LOGO_URL = f"{BASE_URL}DeepLearning101-LOGO.png"
42
  HOME_URL = "https://deep-learning-101.github.io"
43
 
44
  KNOWLEDGE_MAP = {
@@ -130,7 +130,7 @@ def get_gemini_response(user_input):
130
  """
131
  try:
132
  model = genai.GenerativeModel(
133
- model_name="gemini-1.5-flash-latest",
134
  system_instruction=system_instruction
135
  )
136
  chat = model.start_chat(history=[])
 
38
 
39
  # 1. 基礎設定與連結
40
  BASE_URL = "https://raw.githubusercontent.com/Deep-Learning-101/deep-learning-101.github.io/main/"
41
+ LOGO_URL = f"{BASE_URL}images/DeepLearning101-LOGO.png"
42
  HOME_URL = "https://deep-learning-101.github.io"
43
 
44
  KNOWLEDGE_MAP = {
 
130
  """
131
  try:
132
  model = genai.GenerativeModel(
133
+ model_name="gemini-flash-lite-latest",
134
  system_instruction=system_instruction
135
  )
136
  chat = model.start_chat(history=[])