Guetat Youssef commited on
Commit
3d011a9
·
1 Parent(s): 9b4f505
Files changed (3) hide show
  1. Dockerfile +27 -0
  2. main.py +0 -0
  3. requirements.txt +15 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ curl \
9
+ build-essential \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy requirements and install Python dependencies
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy application code
17
+ COPY . .
18
+
19
+ # Expose port
20
+ EXPOSE 7860
21
+
22
+ # Set environment variables
23
+ ENV PYTHONPATH=/app
24
+ ENV FLASK_APP=app.py
25
+
26
+ # Run the application
27
+ CMD ["python", "app.py"]
main.py ADDED
File without changes
requirements.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ flask==2.3.3
2
+ transformers==4.52.4
3
+ datasets
4
+ accelerate
5
+ peft==0.15.2
6
+ trl
7
+ bitsandbytes
8
+ torch
9
+ torchvision
10
+ torchaudio
11
+ huggingface-hub
12
+ scipy
13
+ scikit-learn
14
+ numpy
15
+ pandas