Spaces:
Sleeping
Sleeping
Added changes related to deployment on hugging face space
Browse files- Dockerfile: setting HF_HOME and TRANSFORMERS_CACHE to /tmp, we avoid permission issues
- README.md: include required metadata block at the top of the file
- Dockerfile +5 -1
- README.md +10 -0
Dockerfile
CHANGED
@@ -8,6 +8,10 @@ COPY app/requirements.txt ./backend-requirements.txt
|
|
8 |
COPY fe/requirements.txt ./frontend-requirements.txt
|
9 |
RUN pip install --no-cache-dir -r backend-requirements.txt -r frontend-requirements.txt
|
10 |
|
|
|
|
|
|
|
|
|
11 |
# Set PYTHONPATH to ensure all modules are discoverable
|
12 |
ENV PYTHONPATH=/usr/src/app
|
13 |
|
@@ -23,4 +27,4 @@ COPY fe/ ./frontend/
|
|
23 |
EXPOSE 8000 7860
|
24 |
|
25 |
# Run both backend and frontend in parallel
|
26 |
-
CMD ["sh", "-c", "python run.py & python -m frontend.gradio_app"]
|
|
|
8 |
COPY fe/requirements.txt ./frontend-requirements.txt
|
9 |
RUN pip install --no-cache-dir -r backend-requirements.txt -r frontend-requirements.txt
|
10 |
|
11 |
+
# Set cache directories to /tmp
|
12 |
+
ENV HF_HOME=/tmp/huggingface
|
13 |
+
ENV TRANSFORMERS_CACHE=/tmp/huggingface
|
14 |
+
|
15 |
# Set PYTHONPATH to ensure all modules are discoverable
|
16 |
ENV PYTHONPATH=/usr/src/app
|
17 |
|
|
|
27 |
EXPOSE 8000 7860
|
28 |
|
29 |
# Run both backend and frontend in parallel
|
30 |
+
CMD ["sh", "-c", "python run.py & python -m frontend.gradio_app"]
|
README.md
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Prompt Search Engine
|
2 |
|
3 |
## Table of Contents
|
|
|
1 |
+
---
|
2 |
+
title: Search Engine
|
3 |
+
emoji: 🔍
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
---
|
9 |
+
|
10 |
+
|
11 |
# Prompt Search Engine
|
12 |
|
13 |
## Table of Contents
|