Spaces:
Sleeping
Sleeping
Display model
Browse files
app.py
CHANGED
@@ -77,10 +77,11 @@ def initialize(name):
|
|
77 |
))
|
78 |
|
79 |
path_prompt = mapping[mapping_noms[name]]['path_prompt']
|
|
|
80 |
with open(path_prompt, 'r') as f :
|
81 |
prompt = f.read()
|
82 |
|
83 |
-
return fig, display_principale, articles, prompt
|
84 |
|
85 |
|
86 |
def display_article(article):
|
@@ -121,13 +122,13 @@ def display_article(article):
|
|
121 |
# return
|
122 |
|
123 |
|
124 |
-
fig, display_principale, articles, prompt = initialize(st.session_state['name'])
|
125 |
# col1, col2, col3 = st.columns([0.5, 0.2, 0.3])
|
126 |
|
127 |
st.selectbox("Choisir groupe", [mapping[k]['auteurs'] for k in mapping.keys()], key='name')
|
128 |
|
129 |
if st.session_state['name']!=dimanov_et_al:
|
130 |
-
with st.expander("
|
131 |
st.markdown(prompt)
|
132 |
|
133 |
st.subheader('Répartition des articles par catégorie')
|
|
|
77 |
))
|
78 |
|
79 |
path_prompt = mapping[mapping_noms[name]]['path_prompt']
|
80 |
+
model = mapping[mapping_noms[name]]['client']
|
81 |
with open(path_prompt, 'r') as f :
|
82 |
prompt = f.read()
|
83 |
|
84 |
+
return fig, display_principale, articles, prompt, model
|
85 |
|
86 |
|
87 |
def display_article(article):
|
|
|
122 |
# return
|
123 |
|
124 |
|
125 |
+
fig, display_principale, articles, prompt, model = initialize(st.session_state['name'])
|
126 |
# col1, col2, col3 = st.columns([0.5, 0.2, 0.3])
|
127 |
|
128 |
st.selectbox("Choisir groupe", [mapping[k]['auteurs'] for k in mapping.keys()], key='name')
|
129 |
|
130 |
if st.session_state['name']!=dimanov_et_al:
|
131 |
+
with st.expander(f"Prompt for model : {model}") :
|
132 |
st.markdown(prompt)
|
133 |
|
134 |
st.subheader('Répartition des articles par catégorie')
|