Spaces:
Sleeping
Sleeping
ftshijt
commited on
Commit
·
31e64cf
1
Parent(s):
e1645ac
fix path and minor bug
Browse files- Dockerfile +1 -0
- app.py +1 -1
Dockerfile
CHANGED
@@ -50,6 +50,7 @@ ENV NUMBA_CACHE_DIR=/tmp/NUMBA_CACHE_DIR/
|
|
50 |
ENV MPLCONFIGDIR=/tmp/MPLCONFIGDIR/
|
51 |
|
52 |
# Pre-download NLTK data
|
|
|
53 |
RUN python -m nltk.downloader -d /app/nltk_data punkt stopwords wordnet
|
54 |
|
55 |
|
|
|
50 |
ENV MPLCONFIGDIR=/tmp/MPLCONFIGDIR/
|
51 |
|
52 |
# Pre-download NLTK data
|
53 |
+
ENV NLTK_DATA /app/nltk_data
|
54 |
RUN python -m nltk.downloader -d /app/nltk_data punkt stopwords wordnet
|
55 |
|
56 |
|
app.py
CHANGED
@@ -296,7 +296,7 @@ def evaluate_audio(gt_file, pred_file, metric_config, include_timestamps=False):
|
|
296 |
"--score_config", metric_config_path,
|
297 |
"--gt", gt_file,
|
298 |
"--pred", pred_file,
|
299 |
-
"--output_file", output_file
|
300 |
"--use_gpu", True,
|
301 |
]
|
302 |
|
|
|
296 |
"--score_config", metric_config_path,
|
297 |
"--gt", gt_file,
|
298 |
"--pred", pred_file,
|
299 |
+
"--output_file", output_file,
|
300 |
"--use_gpu", True,
|
301 |
]
|
302 |
|