Spaces:
Running
Running
google-labs-jules[bot]
commited on
Commit
·
2535210
1
Parent(s):
71315d9
fix: Address PR comments
Browse files- Fix AttributeError in app.py for StreamlitChatMessageHistory.
app.py
CHANGED
|
@@ -332,7 +332,7 @@ def set_up_chat_ui():
|
|
| 332 |
st.info(APP_TEXT['like_feedback'])
|
| 333 |
st.chat_message('ai').write(random.choice(APP_TEXT['ai_greetings']))
|
| 334 |
|
| 335 |
-
history =
|
| 336 |
prompt_template = chat_helper.ChatPromptTemplate.from_template(
|
| 337 |
_get_prompt_template(
|
| 338 |
is_refinement=_is_it_refinement()
|
|
|
|
| 332 |
st.info(APP_TEXT['like_feedback'])
|
| 333 |
st.chat_message('ai').write(random.choice(APP_TEXT['ai_greetings']))
|
| 334 |
|
| 335 |
+
history = StreamlitChatMessageHistory(key=CHAT_MESSAGES)
|
| 336 |
prompt_template = chat_helper.ChatPromptTemplate.from_template(
|
| 337 |
_get_prompt_template(
|
| 338 |
is_refinement=_is_it_refinement()
|