Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,20 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
def Chatbot():
|
| 9 |
st.title("Chatbot")
|
| 10 |
if query := st.chat_input("enter your message"):
|
| 11 |
-
|
|
|
|
| 12 |
with st.chat_message("user"):
|
| 13 |
|
| 14 |
-
st.write("
|
| 15 |
|
| 16 |
|
| 17 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from bardapi import Bard
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
+
uri = os.enviro["BARD_API_KEY"]
|
| 7 |
+
quora = Bard(token == uri)
|
| 8 |
|
| 9 |
|
| 10 |
def Chatbot():
|
| 11 |
st.title("Chatbot")
|
| 12 |
if query := st.chat_input("enter your message"):
|
| 13 |
+
|
| 14 |
+
umsg = bard.get_answer(query)
|
| 15 |
with st.chat_message("user"):
|
| 16 |
|
| 17 |
+
st.write("umsg")
|
| 18 |
|
| 19 |
|
| 20 |
|