CosmoAI commited on
Commit
cf2c4fc
·
1 Parent(s): 96b891b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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 = input("You: ")
35
- print(f"Uoy: {bardChat(uinput)}")
 
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