Spaces:
Paused
Paused
update file reader
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import streamlit as st
|
|
| 2 |
import pandas as pd
|
| 3 |
import numpy as np
|
| 4 |
import os
|
| 5 |
-
|
| 6 |
|
| 7 |
def save_uploaded_file(uploaded_file):
|
| 8 |
file_path = os.path.join("uploads", uploaded_file.name)
|
|
@@ -21,7 +21,7 @@ if uploaded_file is not None:
|
|
| 21 |
saved_file_path = save_uploaded_file(uploaded_file)
|
| 22 |
|
| 23 |
|
| 24 |
-
monkeyReader = reader.MonkeyReader('monkey')
|
| 25 |
outline = monkeyReader.readOutline(saved_file_path)
|
| 26 |
|
| 27 |
for pre, fill, node in outline:
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
import numpy as np
|
| 4 |
import os
|
| 5 |
+
import grobidmonkey
|
| 6 |
|
| 7 |
def save_uploaded_file(uploaded_file):
|
| 8 |
file_path = os.path.join("uploads", uploaded_file.name)
|
|
|
|
| 21 |
saved_file_path = save_uploaded_file(uploaded_file)
|
| 22 |
|
| 23 |
|
| 24 |
+
monkeyReader = grobidmonkey.reader.MonkeyReader('monkey')
|
| 25 |
outline = monkeyReader.readOutline(saved_file_path)
|
| 26 |
|
| 27 |
for pre, fill, node in outline:
|