Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,12 +32,13 @@ if uploaded_file is not None:
|
|
| 32 |
|
| 33 |
|
| 34 |
saved_file_path = save_uploaded_file(uploaded_file)
|
|
|
|
| 35 |
|
| 36 |
-
client = GrobidClient(config_path="./grobidconfig.json")
|
| 37 |
-
client.process("processFulltextDocument",
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
|
| 42 |
output_file_path = os.path.splitext(saved_file_path)[0] + ".grobid.tei.xml"
|
| 43 |
monkeyReader = reader.MonkeyReader(option)
|
|
|
|
| 32 |
|
| 33 |
|
| 34 |
saved_file_path = save_uploaded_file(uploaded_file)
|
| 35 |
+
exec("grobid_client --input ./uploads/ processFulltextDocument")
|
| 36 |
|
| 37 |
+
# client = GrobidClient(config_path="./grobidconfig.json")
|
| 38 |
+
# client.process("processFulltextDocument",
|
| 39 |
+
# "./uploads/",
|
| 40 |
+
# consolidate_citations=True,
|
| 41 |
+
# tei_coordinates=True)
|
| 42 |
|
| 43 |
output_file_path = os.path.splitext(saved_file_path)[0] + ".grobid.tei.xml"
|
| 44 |
monkeyReader = reader.MonkeyReader(option)
|