Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ st.title("🤖 Chatbot using Gemini API")
|
|
| 20 |
|
| 21 |
# Function to get Gemini response
|
| 22 |
def get_gemini_response(prompt):
|
| 23 |
-
model = genai.GenerativeModel("gemini-
|
| 24 |
response = model.generate_content(prompt)
|
| 25 |
return response.text if response.text else "Sorry, I couldn't understand that."
|
| 26 |
|
|
|
|
| 20 |
|
| 21 |
# Function to get Gemini response
|
| 22 |
def get_gemini_response(prompt):
|
| 23 |
+
model = genai.GenerativeModel("models/gemini-2.0-flash")
|
| 24 |
response = model.generate_content(prompt)
|
| 25 |
return response.text if response.text else "Sorry, I couldn't understand that."
|
| 26 |
|