Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,6 +73,8 @@ def stream_gemini_response(user_message: str, messages: list) -> Iterator[list]:
|
|
| 73 |
# Format chat history for Gemini
|
| 74 |
chat_history = format_chat_history(messages)
|
| 75 |
|
|
|
|
|
|
|
| 76 |
# Initialize Gemini chat
|
| 77 |
print("Chat parameter")
|
| 78 |
chat = model.start_chat(history=chat_history)
|
|
|
|
| 73 |
# Format chat history for Gemini
|
| 74 |
chat_history = format_chat_history(messages)
|
| 75 |
|
| 76 |
+
print(f"hist {chat_history}")
|
| 77 |
+
|
| 78 |
# Initialize Gemini chat
|
| 79 |
print("Chat parameter")
|
| 80 |
chat = model.start_chat(history=chat_history)
|