Wasifjafri commited on
Commit
484b12e
·
1 Parent(s): a0741b4

Simplify requirements for Python 3.11 on HF Spaces; add runtime.txt and app.py entrypoint

Browse files
Files changed (3) hide show
  1. app.py +3 -0
  2. requirements.txt +7 -19
  3. runtime.txt +1 -0
app.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Entrypoint renamed for Hugging Face Spaces Streamlit detection.
2
+ # Currently imports the original app content.
3
+ from src.streamlit_app import * # noqa
requirements.txt CHANGED
@@ -1,25 +1,13 @@
 
1
  langchain==0.2.14
2
  langchain-community==0.2.12
3
  langchain-core==0.2.33
4
- langchain-openai==0.1.23
5
- pypdf==4.2.0
6
  sentence-transformers==3.0.1
7
- # Includes CrossEncoder for reranking (model: cross-encoder/ms-marco-MiniLM-L-6-v2)
8
- chromadb==0.5.5
9
- fastapi==0.114.1
10
- uvicorn==0.30.6
11
- python-multipart==0.0.9
12
- streamlit==1.38.0
13
- python-dotenv==1.0.1
14
- unstructured==0.15.0
15
- unstructured[pdf]==0.15.0
16
- pdfminer-six==20240706
17
- numpy<2.0.0
18
- requests==2.32.3
19
- tiktoken==0.7.0
20
- semantic-text-splitter==0.7.0 # optional: for semantic chunking
21
- streamlit>=1.30.0
22
- transformers>=4.40.0
23
- sentence-transformers>=2.6.0
24
  faiss-cpu>=1.7.4
 
25
  huggingface-hub>=0.23.0
 
 
 
 
 
1
+ streamlit==1.38.0
2
  langchain==0.2.14
3
  langchain-community==0.2.12
4
  langchain-core==0.2.33
5
+ langchain-groq
 
6
  sentence-transformers==3.0.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  faiss-cpu>=1.7.4
8
+ transformers>=4.40.0
9
  huggingface-hub>=0.23.0
10
+ python-dotenv==1.0.1
11
+ tiktoken==0.7.0
12
+ requests==2.32.3
13
+ numpy<2.0.0
runtime.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ python-3.11