Ilyas KHIAT
commited on
Commit
·
193a982
1
Parent(s):
19341ef
corr mep
Browse files- app.py +12 -15
- download_chart.py +0 -1
- partie_prenante_carte.py +1 -0
app.py
CHANGED
@@ -69,10 +69,7 @@ def main():
|
|
69 |
"Choisissez votre sous-section",
|
70 |
[
|
71 |
"Audit flash RSE de vos contenus",
|
72 |
-
"Prompt RSE disponibles",
|
73 |
-
"Générations de contenus RSE",
|
74 |
"Parties prenantes",
|
75 |
-
"Matrice de matérialité",
|
76 |
"Chatbot RSE"
|
77 |
]
|
78 |
)
|
@@ -84,11 +81,11 @@ def main():
|
|
84 |
# display_materiality_partiesprenantes(selected_company, data, bziiit_data)
|
85 |
display_pp()
|
86 |
|
87 |
-
elif ia_mode == "Matrice de matérialité":
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
|
93 |
elif ia_mode == "Chatbot RSE":
|
94 |
display_chat()
|
@@ -96,15 +93,15 @@ def main():
|
|
96 |
elif ia_mode == "Audit flash RSE de vos contenus":
|
97 |
rag_pdf_web()
|
98 |
|
99 |
-
elif ia_mode == "Prompt RSE disponibles":
|
100 |
-
|
101 |
|
102 |
-
elif ia_mode == "Générations de contenus RSE":
|
103 |
-
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
|
109 |
|
110 |
elif section_principale == "Documentation":
|
|
|
69 |
"Choisissez votre sous-section",
|
70 |
[
|
71 |
"Audit flash RSE de vos contenus",
|
|
|
|
|
72 |
"Parties prenantes",
|
|
|
73 |
"Chatbot RSE"
|
74 |
]
|
75 |
)
|
|
|
81 |
# display_materiality_partiesprenantes(selected_company, data, bziiit_data)
|
82 |
display_pp()
|
83 |
|
84 |
+
# elif ia_mode == "Matrice de matérialité":
|
85 |
+
# data, bziiit_data = fetch_data()
|
86 |
+
# selected_company = display_company_selection_for_materiality(data)
|
87 |
+
# if selected_company:
|
88 |
+
# display_materiality_matrix(selected_company, data, bziiit_data)
|
89 |
|
90 |
elif ia_mode == "Chatbot RSE":
|
91 |
display_chat()
|
|
|
93 |
elif ia_mode == "Audit flash RSE de vos contenus":
|
94 |
rag_pdf_web()
|
95 |
|
96 |
+
# elif ia_mode == "Prompt RSE disponibles":
|
97 |
+
# get_prompts_list()
|
98 |
|
99 |
+
# elif ia_mode == "Générations de contenus RSE":
|
100 |
+
# st.header("Exécutez un prompt")
|
101 |
|
102 |
+
# selected_prompt = prompt_execution()
|
103 |
+
# if selected_prompt:
|
104 |
+
# execute_prompt(selected_prompt)
|
105 |
|
106 |
|
107 |
elif section_principale == "Documentation":
|
download_chart.py
CHANGED
@@ -62,7 +62,6 @@ def save_plot_as_pdf(fig, logo_path, title):
|
|
62 |
st.write("saving plot as pdf")
|
63 |
|
64 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".png") as tmpfile:
|
65 |
-
fig.write_image("./plot.png")
|
66 |
st.write("tmpfile created")
|
67 |
image_bytes = pio.to_image(fig, format='png')
|
68 |
st.write("image_bytes")
|
|
|
62 |
st.write("saving plot as pdf")
|
63 |
|
64 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".png") as tmpfile:
|
|
|
65 |
st.write("tmpfile created")
|
66 |
image_bytes = pio.to_image(fig, format='png')
|
67 |
st.write("image_bytes")
|
partie_prenante_carte.py
CHANGED
@@ -236,6 +236,7 @@ def display_pp():
|
|
236 |
|
237 |
#complete and verify the url
|
238 |
is_valid,url = complete_and_verify_url(url)
|
|
|
239 |
if not is_valid:
|
240 |
st.error("URL invalide")
|
241 |
elif url in st.session_state["urls"] :
|
|
|
236 |
|
237 |
#complete and verify the url
|
238 |
is_valid,url = complete_and_verify_url(url)
|
239 |
+
st.write(url)
|
240 |
if not is_valid:
|
241 |
st.error("URL invalide")
|
242 |
elif url in st.session_state["urls"] :
|