Spaces:
Sleeping
Sleeping
Small path bug correction
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from datasets import load_dataset
|
|
6 |
import streamlit as st
|
7 |
|
8 |
REPO_ID = "libeIO/Sciences-POC"
|
|
|
9 |
|
10 |
with open('mapping_prompts.txt', 'r') as f:
|
11 |
mapping = json.loads(f.read())
|
@@ -21,7 +22,7 @@ def initialize(name):
|
|
21 |
|
22 |
articles = pd.read_csv('extract_sciences_po.csv')
|
23 |
|
24 |
-
with open(mapping[mapping_noms[name]]['save_path'], 'r') as f :
|
25 |
out_dict = json.loads(f.read())
|
26 |
|
27 |
df = pd.DataFrame.from_dict(out_dict)
|
|
|
6 |
import streamlit as st
|
7 |
|
8 |
REPO_ID = "libeIO/Sciences-POC"
|
9 |
+
SAVE_PATH = "save"
|
10 |
|
11 |
with open('mapping_prompts.txt', 'r') as f:
|
12 |
mapping = json.loads(f.read())
|
|
|
22 |
|
23 |
articles = pd.read_csv('extract_sciences_po.csv')
|
24 |
|
25 |
+
with open(f"{SAVE_PATH}/{mapping[mapping_noms[name]]['save_path']}", 'r') as f :
|
26 |
out_dict = json.loads(f.read())
|
27 |
|
28 |
df = pd.DataFrame.from_dict(out_dict)
|