Bard [test mode]: fix content
This commit is contained in:
parent
48ef8cd7a0
commit
06c9d17717
@ -68,7 +68,7 @@ def bard_conversation() -> None:
|
|||||||
try:
|
try:
|
||||||
bard = Chatbot(st.secrets.api_credentials.bard_session)
|
bard = Chatbot(st.secrets.api_credentials.bard_session)
|
||||||
ai_content = bard.ask(st.session_state.user_text)
|
ai_content = bard.ask(st.session_state.user_text)
|
||||||
st.warning(ai_content)
|
st.warning(ai_content.get("content"))
|
||||||
except AttributeError as err:
|
except AttributeError as err:
|
||||||
st.error(err)
|
st.error(err)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user