mgbam commited on
Commit
e82138e
·
verified ·
1 Parent(s): ee1cbf3

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +24 -23
requirements.txt CHANGED
@@ -1,28 +1,29 @@
1
- # Base image with Python 3.10
2
- FROM python:3.10-slim
 
3
 
4
- WORKDIR /app
 
 
5
 
6
- # Install system dependencies
7
- RUN apt-get update && \
8
- apt-get install -y --no-install-recommends \
9
- build-essential \
10
- gcc \
11
- && rm -rf /var/lib/apt/lists/*
12
 
13
- # Copy requirements first for better caching
14
- COPY requirements.txt .
 
 
 
 
 
 
15
 
16
- # Install Python dependencies
17
- RUN pip install --upgrade pip && \
18
- pip install --no-cache-dir -r requirements.txt
 
19
 
20
- # Copy application files
21
- COPY . .
22
-
23
- # Set up non-root user
24
- RUN useradd -m appuser && chown -R appuser:appuser /app
25
- USER appuser
26
-
27
- # Run FastAPI with Uvicorn (Hugging Face Spaces expects port 7860)
28
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Core dependencies
2
+ fastapi==0.95.2
3
+ uvicorn==0.22.0
4
 
5
+ # HTTP clients
6
+ httpx==0.27.0
7
+ gql[all]==3.5.0
8
 
9
+ # AI/ML
10
+ openai==0.28.1
11
+ google-generativeai==0.5.0
 
 
 
12
 
13
+ # Data processing
14
+ pydantic==1.10.12
15
+ python-dotenv==1.0.0
16
+ pandas==2.0.3
17
+ feedparser==6.0.10
18
+ xmltodict==0.13.0
19
+ requests==2.31.0
20
+ PyYAML==6.0.1
21
 
22
+ # NLP
23
+ spacy==3.4.4
24
+ scispacy==0.5.1
25
+ https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.1/en_core_sci_sm-0.5.1.tar.gz
26
 
27
+ # Visualization (optional - remove if not needed)
28
+ plotly==5.15.0
29
+ pyvis==0.3.1