Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from langchain.vectorstores import FAISS
|
|
9 |
from langchain.chains import ConversationalRetrievalChain
|
10 |
from langchain.memory import ConversationBufferMemory
|
11 |
|
12 |
-
os.environ['GOOGLE_API_KEY'] = '
|
13 |
|
14 |
def get_pdf_text(pdf_docs):
|
15 |
text = ""
|
@@ -65,6 +65,7 @@ def get_user_input(user_question):
|
|
65 |
def main():
|
66 |
st.set_page_config("DocChat")
|
67 |
# Define Streamlit app layout
|
|
|
68 |
st.markdown("<h3 style='color: orange;'>🧾 DocChat - Chat with multiple documents</h3>", unsafe_allow_html=True)
|
69 |
st.caption("🚀 Chat bot developed By :- [Dinesh Abeysinghe](https://www.linkedin.com/in/dinesh-abeysinghe-bb773293) | [GitHub Source Code](https://github.com/dineshabey/AI-TypeTalkChat.git) | [About model](https://arxiv.org/abs/2004.13637) ")
|
70 |
st.markdown("<div style= 'text-align: center;'>First need to upload PDF file or Excel file. Then you can start chat with document related things <span style='color: orange;'>Please click like button</span>❤️ and support me and enjoy it.</div>", unsafe_allow_html=True)
|
@@ -104,4 +105,4 @@ def main():
|
|
104 |
get_user_input(user_question)
|
105 |
|
106 |
if __name__ == "__main__":
|
107 |
-
main()
|
|
|
9 |
from langchain.chains import ConversationalRetrievalChain
|
10 |
from langchain.memory import ConversationBufferMemory
|
11 |
|
12 |
+
os.environ['GOOGLE_API_KEY'] = 'your_google_api_key_here'
|
13 |
|
14 |
def get_pdf_text(pdf_docs):
|
15 |
text = ""
|
|
|
65 |
def main():
|
66 |
st.set_page_config("DocChat")
|
67 |
# Define Streamlit app layout
|
68 |
+
st.markdown("<style>body { background-color: black; color: white; }</style>", unsafe_allow_html=True)
|
69 |
st.markdown("<h3 style='color: orange;'>🧾 DocChat - Chat with multiple documents</h3>", unsafe_allow_html=True)
|
70 |
st.caption("🚀 Chat bot developed By :- [Dinesh Abeysinghe](https://www.linkedin.com/in/dinesh-abeysinghe-bb773293) | [GitHub Source Code](https://github.com/dineshabey/AI-TypeTalkChat.git) | [About model](https://arxiv.org/abs/2004.13637) ")
|
71 |
st.markdown("<div style= 'text-align: center;'>First need to upload PDF file or Excel file. Then you can start chat with document related things <span style='color: orange;'>Please click like button</span>❤️ and support me and enjoy it.</div>", unsafe_allow_html=True)
|
|
|
105 |
get_user_input(user_question)
|
106 |
|
107 |
if __name__ == "__main__":
|
108 |
+
main()
|