Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,15 +15,15 @@ genai.configure(api_key=GEMINI_API_KEY)
|
|
| 15 |
print("add API key complete")
|
| 16 |
print("add model")
|
| 17 |
|
| 18 |
-
used_model = "gemini-2.
|
| 19 |
|
| 20 |
# we will be using the Gemini 2.0 Flash model with Thinking capabilities
|
| 21 |
model = genai.GenerativeModel("gemini-2.0-flash-thinking-exp-01-21")
|
| 22 |
|
| 23 |
-
print(f"add model {used_model} colplete")
|
| 24 |
|
| 25 |
def format_chat_history(messages: list) -> list:
|
| 26 |
-
print("
|
| 27 |
"""
|
| 28 |
Formats the chat history into a structure Gemini can understand
|
| 29 |
"""
|
|
|
|
| 15 |
print("add API key complete")
|
| 16 |
print("add model")
|
| 17 |
|
| 18 |
+
used_model = "gemini-2.5-pro-exp-03-25"
|
| 19 |
|
| 20 |
# we will be using the Gemini 2.0 Flash model with Thinking capabilities
|
| 21 |
model = genai.GenerativeModel("gemini-2.0-flash-thinking-exp-01-21")
|
| 22 |
|
| 23 |
+
print(f"add model {used_model} colplete\n")
|
| 24 |
|
| 25 |
def format_chat_history(messages: list) -> list:
|
| 26 |
+
print("\nstart format history")
|
| 27 |
"""
|
| 28 |
Formats the chat history into a structure Gemini can understand
|
| 29 |
"""
|