Update app.py
Browse files
app.py
CHANGED
@@ -50,13 +50,15 @@ async def echo(message, history, state, persona):
|
|
50 |
"expiration_time": path_gcp.expiration_time,
|
51 |
})
|
52 |
attached_file = path_wrap
|
53 |
-
print(attached_file)
|
54 |
|
55 |
user_message_parts = [types.Part.from_text(text=message['text'])]
|
56 |
if attached_file: user_message_parts.append(attached_file)
|
57 |
user_message = [types.Content(role='user', parts=user_message_parts)]
|
|
|
|
|
58 |
|
59 |
state['messages'] = state['messages'] + user_message
|
|
|
60 |
print(state['messages'])
|
61 |
|
62 |
response_chunks = ""
|
|
|
50 |
"expiration_time": path_gcp.expiration_time,
|
51 |
})
|
52 |
attached_file = path_wrap
|
|
|
53 |
|
54 |
user_message_parts = [types.Part.from_text(text=message['text'])]
|
55 |
if attached_file: user_message_parts.append(attached_file)
|
56 |
user_message = [types.Content(role='user', parts=user_message_parts)]
|
57 |
+
print(1)
|
58 |
+
print(user_message)
|
59 |
|
60 |
state['messages'] = state['messages'] + user_message
|
61 |
+
print(2)
|
62 |
print(state['messages'])
|
63 |
|
64 |
response_chunks = ""
|