Spaces:
Sleeping
Sleeping
fix 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 |
-
import
|
| 6 |
|
| 7 |
def save_uploaded_file(uploaded_file):
|
| 8 |
file_path = os.path.join("uploads", uploaded_file.name)
|
|
@@ -20,8 +20,7 @@ if uploaded_file is not None:
|
|
| 20 |
st.write(len(bytes_data), "bytes")
|
| 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:
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
import numpy as np
|
| 4 |
import os
|
| 5 |
+
from grobidmonkey import reader
|
| 6 |
|
| 7 |
def save_uploaded_file(uploaded_file):
|
| 8 |
file_path = os.path.join("uploads", uploaded_file.name)
|
|
|
|
| 20 |
st.write(len(bytes_data), "bytes")
|
| 21 |
saved_file_path = save_uploaded_file(uploaded_file)
|
| 22 |
|
| 23 |
+
monkeyReader = reader.MonkeyReader('monkey')
|
|
|
|
| 24 |
outline = monkeyReader.readOutline(saved_file_path)
|
| 25 |
|
| 26 |
for pre, fill, node in outline:
|