Final app for hf space
Browse files- .gitignore +3 -1
- app.py +3 -3
.gitignore
CHANGED
@@ -7,6 +7,7 @@ __pycache__/
|
|
7 |
*.so
|
8 |
|
9 |
# Distribution / packaging
|
|
|
10 |
research/
|
11 |
.Python
|
12 |
build/
|
@@ -123,7 +124,8 @@ celerybeat.pid
|
|
123 |
*.sage.py
|
124 |
|
125 |
# Environments
|
126 |
-
|
|
|
127 |
.env
|
128 |
.venv
|
129 |
env/
|
|
|
7 |
*.so
|
8 |
|
9 |
# Distribution / packaging
|
10 |
+
# git ignoring trial files
|
11 |
research/
|
12 |
.Python
|
13 |
build/
|
|
|
124 |
*.sage.py
|
125 |
|
126 |
# Environments
|
127 |
+
# git gnoring my Virtual env and dotenv file
|
128 |
+
pdfsensevenv/
|
129 |
.env
|
130 |
.venv
|
131 |
env/
|
app.py
CHANGED
@@ -20,12 +20,12 @@ os.environ['GROQ_API_KEY'] = os.getenv('GROQ_API_KEY')
|
|
20 |
# Embeddings and LLM initialization
|
21 |
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
22 |
llm = ChatGroq(model="Gemma2-9b-It")
|
23 |
-
st.set_page_config(page_title="PDFSense", page_icon="
|
24 |
# Streamlit app title
|
25 |
-
st.title("
|
26 |
|
27 |
# PDF Uploader Section (Keeps it at the top)
|
28 |
-
uploaded_files = st.file_uploader("Drop PDF files here", type="pdf", accept_multiple_files=
|
29 |
|
30 |
# Initialize chat history
|
31 |
if "messages" not in st.session_state:
|
|
|
20 |
# Embeddings and LLM initialization
|
21 |
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
22 |
llm = ChatGroq(model="Gemma2-9b-It")
|
23 |
+
st.set_page_config(page_title="PDFSense", page_icon="๐")
|
24 |
# Streamlit app title
|
25 |
+
st.title("๐ ๐๐๐
๐๐๐ง๐ฌ๐ : ๐๐๐
๐๐ฎ๐๐ฌ๐ญ๐ข๐จ๐ง ๐๐ง๐ฌ๐ฐ๐๐ซ๐ข๐ง๐ ๐๐ฌ๐ฌ๐ข๐ฌ๐ญ๐๐ง๐ญ ๐ฐ๐ข๐ญ๐ก ๐๐ก๐๐ญ ๐๐ข๐ฌ๐ญ๐จ๐ซ๐ฒ")
|
26 |
|
27 |
# PDF Uploader Section (Keeps it at the top)
|
28 |
+
uploaded_files = st.file_uploader("Drop PDF files here", type="pdf", accept_multiple_files=False)
|
29 |
|
30 |
# Initialize chat history
|
31 |
if "messages" not in st.session_state:
|