Spaces:
Sleeping
Sleeping
File size: 380 Bytes
c9e6e83 c658cee db21945 c9e6e83 1b4ff7f e14a4bc c9e6e83 ca077ad c658cee 495ad10 1e63eb9 4155768 d53704a c9e6e83 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import streamlit as st
from bardapi import Bard
import os
uri = os.environ["BARD_API_KEY"]
quora = Bard(token = uri)
def Chatbot():
st.title("Chatbot")
if query := st.chat_input("enter your message"):
umsg = quora.get_answer(query)
with st.chat_message("user"):
st.write(umsg["choices"][1]["content"][0])
Chatbot()
|