Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import streamlit as st
|
|
| 5 |
bardkey = os.environ.get("BARD_API_KEY")
|
| 6 |
|
| 7 |
bard = Bard(session=bardkey)
|
| 8 |
-
if query
|
| 9 |
ans = bard.get_answer(query)
|
| 10 |
with st.chat_message("assistant"):
|
| 11 |
st.write(ans['content'])
|
|
|
|
| 5 |
bardkey = os.environ.get("BARD_API_KEY")
|
| 6 |
|
| 7 |
bard = Bard(session=bardkey)
|
| 8 |
+
if query := st.chat_input("Hi, how can I help you"):
|
| 9 |
ans = bard.get_answer(query)
|
| 10 |
with st.chat_message("assistant"):
|
| 11 |
st.write(ans['content'])
|