Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,11 +45,12 @@ def chat_with_gemini(user_input, history):
|
|
| 45 |
|
| 46 |
chat = client.chats.create(model="gemini-2.0-flash")
|
| 47 |
|
| 48 |
-
|
|
|
|
| 49 |
# Generate response
|
| 50 |
response = chat.send_message(user_input)
|
| 51 |
response_text = response.text
|
| 52 |
-
|
| 53 |
# Update history
|
| 54 |
history.append(user_input)
|
| 55 |
history.append(response_text)
|
|
|
|
| 45 |
|
| 46 |
chat = client.chats.create(model="gemini-2.0-flash")
|
| 47 |
|
| 48 |
+
print("History is",history)
|
| 49 |
+
print("User input is ",user_input)
|
| 50 |
# Generate response
|
| 51 |
response = chat.send_message(user_input)
|
| 52 |
response_text = response.text
|
| 53 |
+
print("Response text is ",response_text)
|
| 54 |
# Update history
|
| 55 |
history.append(user_input)
|
| 56 |
history.append(response_text)
|