Spaces:
Runtime error
Runtime error
ikram
commited on
Commit
Β·
d0d55cc
1
Parent(s):
8b3885d
first commit
Browse files- Visualisation/app.py +0 -0
- Visualisation/dockerfile +20 -0
- Visualisation/requirements.txt +8 -0
- docker-compose.yml +19 -0
- document-translation +0 -1
- requirements.txt +0 -0
- app.py β translation/app.py +0 -0
- static/Dockerfile β translation/dockerfile +0 -0
- main.py β translation/main.py +0 -0
- translation/requirements.txt +0 -0
- {static β translation/static}/.dockerignore +0 -0
- {static β translation/static}/README1.md +0 -0
- {static β translation/static}/app.py +0 -0
- {static β translation/static}/index.html +0 -0
- {static β translation/static}/main.py +0 -0
- {static β translation/static}/requirements.txt +0 -0
- {static β translation/static}/requirements1.txt +0 -0
- {static β translation/static}/uploads/TD1 (1).docx +0 -0
- {static β translation/static}/uploads/Untitled.pdf +0 -0
- {static β translation/static}/uploads/chapitre 2 RECONNAISSANCE DE FORMES ET CLASSIFICATION.pdf +0 -0
Visualisation/app.py
ADDED
File without changes
|
Visualisation/dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python image as the base image
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the main project files
|
8 |
+
COPY requirements.txt .
|
9 |
+
|
10 |
+
# Install the dependencies
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
# Copy the entire project into the container
|
14 |
+
COPY . .
|
15 |
+
|
16 |
+
# Expose the FastAPI default port
|
17 |
+
EXPOSE 8000
|
18 |
+
|
19 |
+
# Command to start FastAPI with Uvicorn
|
20 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
Visualisation/requirements.txt
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
fastapi
|
2 |
+
uvicorn
|
3 |
+
pandas
|
4 |
+
openpyxl
|
5 |
+
matplotlib
|
6 |
+
seaborn
|
7 |
+
pydantic
|
8 |
+
python-multipart
|
docker-compose.yml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
services:
|
3 |
+
data-visualization:
|
4 |
+
build: ./Visualisation # Chemin vers le Dockerfile de ce service
|
5 |
+
container_name: data_vis_service
|
6 |
+
ports:
|
7 |
+
- "8001:8000" # Exposer l'API sur le port 8001
|
8 |
+
volumes:
|
9 |
+
- ./uploads:/app/uploads # Partager le dossier d'uploads
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
document-translation:
|
14 |
+
build: ./translation # Chemin vers le Dockerfile de ce service
|
15 |
+
container_name: translation_service
|
16 |
+
ports:
|
17 |
+
- "8002:8000" # Exposer l'API sur le port 8002
|
18 |
+
volumes:
|
19 |
+
- ./uploads:/app/uploads # Partager le dossier d'uploads
|
document-translation
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
Subproject commit de121a8cd759d996b71d7c28bff6504a66162227
|
|
|
|
requirements.txt
DELETED
Binary file (2.27 kB)
|
|
app.py β translation/app.py
RENAMED
File without changes
|
static/Dockerfile β translation/dockerfile
RENAMED
File without changes
|
main.py β translation/main.py
RENAMED
File without changes
|
translation/requirements.txt
ADDED
Binary file (1.31 kB). View file
|
|
{static β translation/static}/.dockerignore
RENAMED
File without changes
|
{static β translation/static}/README1.md
RENAMED
File without changes
|
{static β translation/static}/app.py
RENAMED
File without changes
|
{static β translation/static}/index.html
RENAMED
File without changes
|
{static β translation/static}/main.py
RENAMED
File without changes
|
{static β translation/static}/requirements.txt
RENAMED
File without changes
|
{static β translation/static}/requirements1.txt
RENAMED
File without changes
|
{static β translation/static}/uploads/TD1 (1).docx
RENAMED
File without changes
|
{static β translation/static}/uploads/Untitled.pdf
RENAMED
File without changes
|
{static β translation/static}/uploads/chapitre 2 RECONNAISSANCE DE FORMES ET CLASSIFICATION.pdf
RENAMED
File without changes
|