Spaces:
Sleeping
Sleeping
fix module import
Browse files
app.py
CHANGED
|
@@ -2,6 +2,10 @@ import os
|
|
| 2 |
import sys
|
| 3 |
from pathlib import Path
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
import importlib
|
| 6 |
import json
|
| 7 |
import base64
|
|
@@ -10,8 +14,9 @@ import re
|
|
| 10 |
import pandas as pd
|
| 11 |
import plotly.express as px
|
| 12 |
import streamlit as st
|
|
|
|
| 13 |
|
| 14 |
-
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
| 15 |
|
| 16 |
from preprocessing.text_extractor import extract_text_from_file
|
| 17 |
from preprocessing.clause_extraction import extract_clauses
|
|
|
|
| 2 |
import sys
|
| 3 |
from pathlib import Path
|
| 4 |
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
import importlib
|
| 10 |
import json
|
| 11 |
import base64
|
|
|
|
| 14 |
import pandas as pd
|
| 15 |
import plotly.express as px
|
| 16 |
import streamlit as st
|
| 17 |
+
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
|
| 18 |
|
| 19 |
+
#sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
| 20 |
|
| 21 |
from preprocessing.text_extractor import extract_text_from_file
|
| 22 |
from preprocessing.clause_extraction import extract_clauses
|