CosmoAI commited on
Commit
0111da5
·
1 Parent(s): 1667d33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,9 +2,9 @@ from bardapi import Bard
2
  import os
3
  import streamlit as st
4
 
5
- # bardkey = os.environ.get("BARD_API_KEY")
6
 
7
- bard = Bard(session="bQjBGssryiUtWUqrUctpkFUGHPsygwO4x_xJaPlUra_ivm0FZm7VzMCH0v0mJNL0wG4ISg.")
8
  if query := st.chat_input("Hi, how can I help you"):
9
  ans = bard.get_answer(query)
10
  with st.chat_message("assistant"):
 
2
  import os
3
  import streamlit as st
4
 
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"):