AkashVD26 commited on
Commit
005587f
ยท
1 Parent(s): 4cbd953

Final app for hf space

Browse files
Files changed (2) hide show
  1. .gitignore +3 -1
  2. 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
- pdfsensevenv/
 
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("๐Ÿ“„ PDFSense: PDF Question Answering with Chat History")
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=True)
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: