Spaces:
Sleeping
Sleeping
Bug fix
Browse files- app.py +3 -3
- config/mapping_prompts.txt +0 -7
app.py
CHANGED
|
@@ -13,8 +13,8 @@ with open('config/mapping_prompts.txt', 'r') as f:
|
|
| 13 |
with open('config/mapping_noms.txt', 'r') as f:
|
| 14 |
mapping_noms = json.loads(f.read())
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
|
| 19 |
@st.cache_resource
|
| 20 |
def initialize(name):
|
|
@@ -127,7 +127,7 @@ def display_article(article):
|
|
| 127 |
fig, display_principale, articles, prompt, model = initialize(st.session_state['name'])
|
| 128 |
# col1, col2, col3 = st.columns([0.5, 0.2, 0.3])
|
| 129 |
|
| 130 |
-
st.selectbox("Choisir groupe", [mapping[k]['auteurs'] for k in mapping.keys()], key='name'
|
| 131 |
|
| 132 |
if st.session_state['name']=="dimanov_et_al":
|
| 133 |
|
|
|
|
| 13 |
with open('config/mapping_noms.txt', 'r') as f:
|
| 14 |
mapping_noms = json.loads(f.read())
|
| 15 |
|
| 16 |
+
if 'name' not in st.session_state.keys():
|
| 17 |
+
st.session_state['name'] = 'Groupe 2'
|
| 18 |
|
| 19 |
@st.cache_resource
|
| 20 |
def initialize(name):
|
|
|
|
| 127 |
fig, display_principale, articles, prompt, model = initialize(st.session_state['name'])
|
| 128 |
# col1, col2, col3 = st.columns([0.5, 0.2, 0.3])
|
| 129 |
|
| 130 |
+
st.selectbox("Choisir groupe", [mapping[k]['auteurs'] for k in mapping.keys()], key='name')
|
| 131 |
|
| 132 |
if st.session_state['name']=="dimanov_et_al":
|
| 133 |
|
config/mapping_prompts.txt
CHANGED
|
@@ -1,11 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"dimanov_et_al": {
|
| 3 |
-
"auteurs": "Groupe 1",
|
| 4 |
-
"path_rapport": "rapports/POC - Dimanov, Girard, Barge, Cosic.pdf",
|
| 5 |
-
"save_path":"data/outputs/output_dimanov_et_al.txt",
|
| 6 |
-
"path_prompt": "config/prompts/prompt_dimanov_et_al.txt",
|
| 7 |
-
"client": "openai"
|
| 8 |
-
},
|
| 9 |
"sans_titre_1": {
|
| 10 |
"auteurs": "Groupe 2",
|
| 11 |
"path_rapport": "rapports/sans_titre_1.pdf",
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"sans_titre_1": {
|
| 3 |
"auteurs": "Groupe 2",
|
| 4 |
"path_rapport": "rapports/sans_titre_1.pdf",
|