Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,6 @@ from bardapi import Bard
|
|
| 5 |
|
| 6 |
bardKey = os.environ.get('_BARD_API_KEY')
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
def bardChat(data):
|
| 11 |
# Create a session object using the requests library
|
| 12 |
session = requests.Session()
|
|
@@ -31,6 +29,7 @@ def bardChat(data):
|
|
| 31 |
|
| 32 |
return json.dumps({'message':answer,'action':'null'})
|
| 33 |
|
| 34 |
-
uinput =
|
| 35 |
-
|
|
|
|
| 36 |
|
|
|
|
| 5 |
|
| 6 |
bardKey = os.environ.get('_BARD_API_KEY')
|
| 7 |
|
|
|
|
|
|
|
| 8 |
def bardChat(data):
|
| 9 |
# Create a session object using the requests library
|
| 10 |
session = requests.Session()
|
|
|
|
| 29 |
|
| 30 |
return json.dumps({'message':answer,'action':'null'})
|
| 31 |
|
| 32 |
+
uinput = st.chat_input("Enter your message")
|
| 33 |
+
with st.chat_message("assistant"):
|
| 34 |
+
st.markdown(bardChat(uinput))
|
| 35 |
|