File size: 349 Bytes
c9e6e83
c814baf
 
c9e6e83
1b4ff7f
fa7995a
c9e6e83
c814baf
c9e6e83
 
c814baf
5fba623
c9e6e83
c814baf
a877583
c9e6e83
aea51ec
c814baf
e6aa206
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import streamlit as st
from bardapi import Bard 
import os 

uri = os.environ["BARD_API_KEY"]
bard = Bard(token = uri)


def Chatbot():
    st.title("Chatbot")
    query := st.chat_input("enter your message")
        umsg = bard.get_answer(query)

        with st.chat_message("Assistant"):
            st.write(umsg["content"])

Chatbot()