architojha commited on
Commit
286933c
·
1 Parent(s): b32f62e
Dockerfile CHANGED
@@ -9,6 +9,8 @@ COPY . /app/
9
 
10
  RUN mkdir -p /app/src/core/logs && chmod -R 777 /app/src/core/logs
11
 
 
 
12
  RUN apt-get update && \
13
  apt-get install -y redis-server && \
14
  apt-get clean && rm -rf /var/lib/apt/lists/*
 
9
 
10
  RUN mkdir -p /app/src/core/logs && chmod -R 777 /app/src/core/logs
11
 
12
+ RUN mkdir -p /app/src/core/cache/downloads && chmod -R 777 /app/src/core/cache
13
+
14
  RUN apt-get update && \
15
  apt-get install -y redis-server && \
16
  apt-get clean && rm -rf /var/lib/apt/lists/*
src/api/v1/build_ml_plan/eda.py CHANGED
@@ -20,6 +20,6 @@ async def main(response: EdaRequestSchema):
20
  delete_dir_contents(directory="src/core/cache/dataset_logs")
21
  delete_dir_contents(directory="src/core/cache/downloads")
22
 
23
- return {
24
  "execution_logs": logs
25
  }
 
20
  delete_dir_contents(directory="src/core/cache/dataset_logs")
21
  delete_dir_contents(directory="src/core/cache/downloads")
22
 
23
+ return {
24
  "execution_logs": logs
25
  }
src/api/v1/eda_engine/data_quality.py CHANGED
@@ -32,7 +32,7 @@ async def main(file: UploadFile = File(...), ml_task: str = Form(None)):
32
  '''Clears the /downloads folder and stores the recieved file under 'dataset.csv' '''
33
 
34
  downloads_path = "src/core/cache/downloads"
35
- os.makedirs(downloads_path, exist_ok=True)
36
  delete_dir_contents(downloads_path)
37
  destination_path = os.path.join(downloads_path, "dataset.csv")
38
  with open(destination_path, "wb") as buffer:
 
32
  '''Clears the /downloads folder and stores the recieved file under 'dataset.csv' '''
33
 
34
  downloads_path = "src/core/cache/downloads"
35
+ # os.makedirs(downloads_path, exist_ok=True)
36
  delete_dir_contents(downloads_path)
37
  destination_path = os.path.join(downloads_path, "dataset.csv")
38
  with open(destination_path, "wb") as buffer:
src/api/v1/eda_engine/data_statistics.py CHANGED
@@ -34,7 +34,7 @@ async def main(file: UploadFile = File(...), ml_task: str = Form(None)):
34
  '''Clears the /downloads folder and stores the recieved file under 'dataset.csv' '''
35
 
36
  downloads_path = "src/core/cache/downloads"
37
- os.makedirs(downloads_path, exist_ok=True)
38
  delete_dir_contents(downloads_path)
39
  destination_path = os.path.join(downloads_path, "dataset.csv")
40
  with open(destination_path, "wb") as buffer:
 
34
  '''Clears the /downloads folder and stores the recieved file under 'dataset.csv' '''
35
 
36
  downloads_path = "src/core/cache/downloads"
37
+ # os.makedirs(downloads_path, exist_ok=True)
38
  delete_dir_contents(downloads_path)
39
  destination_path = os.path.join(downloads_path, "dataset.csv")
40
  with open(destination_path, "wb") as buffer:
src/api/v1/eda_engine/data_understanding.py CHANGED
@@ -34,7 +34,7 @@ async def main(file: UploadFile = File(...), business_requirements: Optional[str
34
  '''Clears the /downloads folder and stores the recieved file under 'dataset.csv' '''
35
 
36
  downloads_path = "src/core/cache/downloads"
37
- os.makedirs(downloads_path, exist_ok=True)
38
  delete_dir_contents(downloads_path)
39
  destination_path = os.path.join(downloads_path, "dataset.csv")
40
  with open(destination_path, "wb") as buffer:
 
34
  '''Clears the /downloads folder and stores the recieved file under 'dataset.csv' '''
35
 
36
  downloads_path = "src/core/cache/downloads"
37
+ # os.makedirs(downloads_path, exist_ok=True)
38
  delete_dir_contents(downloads_path)
39
  destination_path = os.path.join(downloads_path, "dataset.csv")
40
  with open(destination_path, "wb") as buffer:
src/api/v1/eda_engine/univariate_analysis.py CHANGED
@@ -34,7 +34,7 @@ async def main(file: UploadFile = File(...), ml_task: str = Form(None)):
34
  '''Clears the /downloads folder and stores the recieved file under 'dataset.csv' '''
35
 
36
  downloads_path = "src/core/cache/downloads"
37
- os.makedirs(downloads_path, exist_ok=True)
38
  delete_dir_contents(downloads_path)
39
  destination_path = os.path.join(downloads_path, "dataset.csv")
40
  with open(destination_path, "wb") as buffer:
 
34
  '''Clears the /downloads folder and stores the recieved file under 'dataset.csv' '''
35
 
36
  downloads_path = "src/core/cache/downloads"
37
+ # os.makedirs(downloads_path, exist_ok=True)
38
  delete_dir_contents(downloads_path)
39
  destination_path = os.path.join(downloads_path, "dataset.csv")
40
  with open(destination_path, "wb") as buffer: