Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,6 @@ from dotenv import load_dotenv
|
|
5 |
import os
|
6 |
import streamlit as st
|
7 |
import pandas as pd
|
8 |
-
from streamlit_chat import message
|
9 |
-
from langchain.embeddings.openai import OpenAIEmbeddings
|
10 |
-
from langchain.chat_models import ChatOpenAI
|
11 |
-
from langchain.chains import ConversationalRetrievalChain
|
12 |
-
from langchain.document_loaders.csv_loader import CSVLoader
|
13 |
-
from langchain.vectorstores import FAISS
|
14 |
|
15 |
# Set the page configuration here
|
16 |
st.set_page_config(page_title="Insightly")
|
@@ -62,9 +56,30 @@ def main():
|
|
62 |
|
63 |
# Add links to the sidebar with the same spacing properties
|
64 |
|
65 |
-
st.sidebar.markdown("<p class='sidebar-link'>π <a href='https://chandrakalagowda-demo2.hf.space/'> PDF Bot </a></p>", unsafe_allow_html=True)
|
66 |
-
st.sidebar.markdown("<p class='sidebar-link'>πΌοΈ <a href='https://insightly-image-reader.hf.space'> Image Reader</a></p>", unsafe_allow_html=True)
|
67 |
-
st.sidebar.markdown("<p class='sidebar-link'>πΈ <a href='https://insightly-csv-bot.hf.space/'> Frame Capturer</a></p>", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
if __name__ == "__main__":
|
70 |
main()
|
|
|
5 |
import os
|
6 |
import streamlit as st
|
7 |
import pandas as pd
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Set the page configuration here
|
10 |
st.set_page_config(page_title="Insightly")
|
|
|
56 |
|
57 |
# Add links to the sidebar with the same spacing properties
|
58 |
|
59 |
+
st.sidebar.markdown("<p class='sidebar-link'>π <a href='https://chandrakalagowda-demo2.hf.space/'> PDF Bot </a></p>", unsafe_allow_html=True)
|
60 |
+
st.sidebar.markdown("<p class='sidebar-link'>πΌοΈ <a href='https://insightly-image-reader.hf.space'> Image Reader</a></p>", unsafe_allow_html=True)
|
61 |
+
st.sidebar.markdown("<p class='sidebar-link'>πΈ <a href='https://insightly-csv-bot.hf.space/'> Frame Capturer</a></p>", unsafe_allow_html=True)
|
62 |
+
|
63 |
+
# Custom CSS to style the link and create vertical space
|
64 |
+
st.markdown(
|
65 |
+
"""
|
66 |
+
<style>
|
67 |
+
.image-container {
|
68 |
+
margin-bottom: 60px;
|
69 |
+
}
|
70 |
+
.sidebar-link {
|
71 |
+
display: flex;
|
72 |
+
justify-content: left;
|
73 |
+
font-size: 24px;
|
74 |
+
margin-top: 20px;
|
75 |
+
}
|
76 |
+
.vertical-space {
|
77 |
+
height: 20px;
|
78 |
+
}
|
79 |
+
</style>
|
80 |
+
""",
|
81 |
+
unsafe_allow_html=True,
|
82 |
+
)
|
83 |
|
84 |
if __name__ == "__main__":
|
85 |
main()
|