Spaces:
Runtime error
Runtime error
Commit
·
a89ac91
1
Parent(s):
28fc9cb
Update Dockerfile to use fastbpe_exec
Browse files- Dockerfile +2 -2
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -19,11 +19,11 @@ COPY app.py .
|
|
| 19 |
COPY hoc_best.pt .
|
| 20 |
COPY bpecodes .
|
| 21 |
COPY dict.txt .
|
| 22 |
-
COPY
|
| 23 |
COPY templates/ ./templates/
|
| 24 |
|
| 25 |
# Ensure the 'fast' binary is executable within the container
|
| 26 |
-
RUN chmod +x ./
|
| 27 |
|
| 28 |
# Make port 5000 available (as defined in README.md and app.py)
|
| 29 |
EXPOSE 5000
|
|
|
|
| 19 |
COPY hoc_best.pt .
|
| 20 |
COPY bpecodes .
|
| 21 |
COPY dict.txt .
|
| 22 |
+
COPY fastbpe_exec .
|
| 23 |
COPY templates/ ./templates/
|
| 24 |
|
| 25 |
# Ensure the 'fast' binary is executable within the container
|
| 26 |
+
RUN chmod +x ./fastbpe_exec
|
| 27 |
|
| 28 |
# Make port 5000 available (as defined in README.md and app.py)
|
| 29 |
EXPOSE 5000
|
app.py
CHANGED
|
@@ -20,7 +20,7 @@ import re # Import the regular expression module
|
|
| 20 |
FINETUNED_MODEL_PATH = "hoc_best.pt"
|
| 21 |
BPE_CODES_PATH = "bpecodes"
|
| 22 |
DICT_TXT_PATH = "dict.txt"
|
| 23 |
-
FASTBPE_BIN_PATH = "./
|
| 24 |
|
| 25 |
HALLMARKS = [ # Keep this consistent with training/evaluation
|
| 26 |
"activating invasion and metastasis", "avoiding immune destruction",
|
|
|
|
| 20 |
FINETUNED_MODEL_PATH = "hoc_best.pt"
|
| 21 |
BPE_CODES_PATH = "bpecodes"
|
| 22 |
DICT_TXT_PATH = "dict.txt"
|
| 23 |
+
FASTBPE_BIN_PATH = "./fastbpe_exec" # Assumes fast executable is alongside app.py
|
| 24 |
|
| 25 |
HALLMARKS = [ # Keep this consistent with training/evaluation
|
| 26 |
"activating invasion and metastasis", "avoiding immune destruction",
|