Merge branch 'main' of https://huggingface.co/spaces/Ankush05/ChatBot
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from pymongo import MongoClient
|
| 3 |
import os
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
|
|
@@ -16,12 +16,7 @@ col = db["chatbot"]
|
|
| 16 |
|
| 17 |
def chatbot():
|
| 18 |
st.title("ChatBot")
|
| 19 |
-
|
| 20 |
-
if
|
| 21 |
-
|
| 22 |
-
pipe = Conversation()
|
| 23 |
-
response = pipe(uinput)
|
| 24 |
-
st.chat(response)
|
| 25 |
-
print(response)
|
| 26 |
-
|
| 27 |
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
import os
|
| 3 |
+
import pandas as pd
|
| 4 |
+
import tranformers
|
| 5 |
|
| 6 |
|
| 7 |
|
|
|
|
| 16 |
|
| 17 |
def chatbot():
|
| 18 |
st.title("ChatBot")
|
| 19 |
+
message = st.text_input("Enter your query here")
|
| 20 |
+
if st.button ("Submit"):
|
| 21 |
+
col.insert_one({"message": message})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|