Spaces:
Sleeping
Sleeping
fix path
Browse files
app.py
CHANGED
|
@@ -23,12 +23,14 @@ if uploaded_file is not None:
|
|
| 23 |
st.write(len(bytes_data), "bytes")
|
| 24 |
saved_file_path = save_uploaded_file(uploaded_file)
|
| 25 |
|
| 26 |
-
os.makedirs("grobidoutputs", exist_ok=True)
|
| 27 |
client = GrobidClient(config_path="./grobidconfig.json")
|
| 28 |
client.process("processFulltextDocument",
|
| 29 |
"./uploads/",
|
|
|
|
| 30 |
n=20)
|
| 31 |
-
|
|
|
|
| 32 |
pattern = uploaded_file.name + ".tei.xml"
|
| 33 |
matching_files = glob.glob(f"{directory}/**/{pattern}", recursive=True)
|
| 34 |
|
|
|
|
| 23 |
st.write(len(bytes_data), "bytes")
|
| 24 |
saved_file_path = save_uploaded_file(uploaded_file)
|
| 25 |
|
| 26 |
+
os.makedirs("./grobidoutputs", exist_ok=True)
|
| 27 |
client = GrobidClient(config_path="./grobidconfig.json")
|
| 28 |
client.process("processFulltextDocument",
|
| 29 |
"./uploads/",
|
| 30 |
+
outputs = "./grobidoutputs/"
|
| 31 |
n=20)
|
| 32 |
+
|
| 33 |
+
directory = "$HOME/app"
|
| 34 |
pattern = uploaded_file.name + ".tei.xml"
|
| 35 |
matching_files = glob.glob(f"{directory}/**/{pattern}", recursive=True)
|
| 36 |
|