Skip to content

Commit

Permalink
Fix embedding models and upload permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
StreetLamb committed Jul 12, 2024
1 parent c06eace commit 7365661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COPY ./app /app/app
RUN addgroup --system celery && adduser --system --ingroup celery celery

# Create necessary directories
RUN mkdir -p /app/.cache/huggingface
RUN mkdir -p /app/.cache/huggingface /app/cache/ /app/upload-data/

# Set HuggingFace cache directory environment variable
ENV HF_HOME=/app/.cache/huggingface
Expand Down
2 changes: 1 addition & 1 deletion backend/app/api/routes/uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def move_upload_to_shared_folder(filename: str, temp_file_dir: str) -> str:
file_name = f"{uuid.uuid4()}-{filename}"
file_path = f"/app/upload-data/{file_name}"
shutil.move(temp_file_dir, file_path)
os.chmod(file_path, 0o644)
os.chmod(file_path, 0o775)
return file_path


Expand Down

0 comments on commit 7365661

Please sign in to comment.