Spaces:
Running
Running
cdupland
commited on
Commit
•
e58c122
1
Parent(s):
8a89e38
chore: Update header text for RAG_PDF and RAG_PDF_WEB pages
Browse files- RAG_PDF.py +1 -1
- RAG_PDF_WEB.py +2 -5
- app.py +11 -2
RAG_PDF.py
CHANGED
@@ -51,7 +51,7 @@ def get_conversation_chain(vectorstore):
|
|
51 |
|
52 |
def rag_pdf():
|
53 |
load_dotenv()
|
54 |
-
st.header("
|
55 |
|
56 |
if "conversation" not in st.session_state:
|
57 |
st.session_state.conversation = None
|
|
|
51 |
|
52 |
def rag_pdf():
|
53 |
load_dotenv()
|
54 |
+
st.header("Utiliser l’IA pour générer un plan RSE simplifié")
|
55 |
|
56 |
if "conversation" not in st.session_state:
|
57 |
st.session_state.conversation = None
|
RAG_PDF_WEB.py
CHANGED
@@ -71,11 +71,8 @@ def get_conversation_chain(vectorstore):
|
|
71 |
|
72 |
def rag_pdf_web():
|
73 |
load_dotenv()
|
74 |
-
st.header("
|
75 |
|
76 |
-
|
77 |
-
|
78 |
-
st.subheader("Générer Plan RSE")
|
79 |
option = st.radio("Source", ("A partir de votre site web", "A partir de vos documents entreprise"))
|
80 |
|
81 |
if option == "A partir de votre site web":
|
@@ -83,7 +80,7 @@ def rag_pdf_web():
|
|
83 |
url2 = st.text_input("URL 2")
|
84 |
url3 = st.text_input("URL 3")
|
85 |
# Process the URLs
|
86 |
-
sous_options = st.radio("
|
87 |
if st.button("Process"):
|
88 |
with st.spinner("Processing..."):
|
89 |
#get text from the website
|
|
|
71 |
|
72 |
def rag_pdf_web():
|
73 |
load_dotenv()
|
74 |
+
st.header("INDIQUEZ VOS PAGES WEB ET/OU DOCUMENTS D’ENTREPRISE POUR AUDITER LE CONTENU RSE")
|
75 |
|
|
|
|
|
|
|
76 |
option = st.radio("Source", ("A partir de votre site web", "A partir de vos documents entreprise"))
|
77 |
|
78 |
if option == "A partir de votre site web":
|
|
|
80 |
url2 = st.text_input("URL 2")
|
81 |
url3 = st.text_input("URL 3")
|
82 |
# Process the URLs
|
83 |
+
sous_options = st.radio("Choisissez votre sous-section", ("Ambition, Vision, Missions, Valeurs", "3 piliers de la démarche RSE"))
|
84 |
if st.button("Process"):
|
85 |
with st.spinner("Processing..."):
|
86 |
#get text from the website
|
app.py
CHANGED
@@ -61,7 +61,13 @@ def main():
|
|
61 |
elif section_principale == "IA RSE":
|
62 |
ia_mode = st.sidebar.radio(
|
63 |
"Choisissez votre sous-section",
|
64 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
)
|
66 |
if ia_mode == "Parties prenantes":
|
67 |
data, bziiit_data = fetch_data()
|
@@ -74,8 +80,11 @@ def main():
|
|
74 |
if selected_company:
|
75 |
display_materiality_matrix(selected_company, data, bziiit_data)
|
76 |
|
77 |
-
elif ia_mode == "
|
78 |
rag_pdf_web()
|
|
|
|
|
|
|
79 |
|
80 |
|
81 |
elif section_principale == "Documentation":
|
|
|
61 |
elif section_principale == "IA RSE":
|
62 |
ia_mode = st.sidebar.radio(
|
63 |
"Choisissez votre sous-section",
|
64 |
+
[
|
65 |
+
"Audit flash RSE de vos contenus",
|
66 |
+
"Prompt RSE disponibles",
|
67 |
+
"Générations de contenus RSE",
|
68 |
+
"Parties prenantes",
|
69 |
+
"Matrice de matérialité"
|
70 |
+
]
|
71 |
)
|
72 |
if ia_mode == "Parties prenantes":
|
73 |
data, bziiit_data = fetch_data()
|
|
|
80 |
if selected_company:
|
81 |
display_materiality_matrix(selected_company, data, bziiit_data)
|
82 |
|
83 |
+
elif ia_mode == "Audit flash RSE de vos contenus":
|
84 |
rag_pdf_web()
|
85 |
+
|
86 |
+
elif ia_mode == "Prompt RSE disponibles" or ia_mode == "Générations de contenus RSE":
|
87 |
+
st.header(ia_mode)
|
88 |
|
89 |
|
90 |
elif section_principale == "Documentation":
|