Spaces:
Sleeping
Sleeping
fix args
Browse files- Dockerfile +2 -1
- app.py +1 -1
Dockerfile
CHANGED
@@ -10,7 +10,8 @@ RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
|
10 |
|
11 |
RUN git clone https://github.com/kermitt2/grobid_client_python && \
|
12 |
cd grobid_client_python && \
|
13 |
-
python3 setup.py install
|
|
|
14 |
|
15 |
# User
|
16 |
RUN useradd -m -u 1000 user
|
|
|
10 |
|
11 |
RUN git clone https://github.com/kermitt2/grobid_client_python && \
|
12 |
cd grobid_client_python && \
|
13 |
+
python3 setup.py install && \
|
14 |
+
cd ..
|
15 |
|
16 |
# User
|
17 |
RUN useradd -m -u 1000 user
|
app.py
CHANGED
@@ -32,7 +32,7 @@ if uploaded_file is not None:
|
|
32 |
|
33 |
directory = "$HOME/app"
|
34 |
|
35 |
-
pattern =
|
36 |
matching_files = glob.glob(f"{directory}/**/{pattern}", recursive=True)
|
37 |
|
38 |
if matching_files:
|
|
|
32 |
|
33 |
directory = "$HOME/app"
|
34 |
|
35 |
+
pattern = os.path.splitext(file_name)[0] + "grobid.tei.xml"
|
36 |
matching_files = glob.glob(f"{directory}/**/{pattern}", recursive=True)
|
37 |
|
38 |
if matching_files:
|