Spaces:
Running
Running
Ilyas KHIAT
commited on
Commit
·
c80303c
1
Parent(s):
507d746
chatbot
Browse files
audit_page/knowledge_graph.py
CHANGED
|
@@ -98,7 +98,8 @@ def kg_main():
|
|
| 98 |
text = get_text_from_content_for_audio(content)
|
| 99 |
|
| 100 |
if st.button("Générer le graphe"):
|
| 101 |
-
|
|
|
|
| 102 |
st.session_state.graph = graph
|
| 103 |
else:
|
| 104 |
graph = st.session_state.graph
|
|
|
|
| 98 |
text = get_text_from_content_for_audio(content)
|
| 99 |
|
| 100 |
if st.button("Générer le graphe"):
|
| 101 |
+
with st.spinner("Génération du graphe..."):
|
| 102 |
+
graph = get_graph(text)
|
| 103 |
st.session_state.graph = graph
|
| 104 |
else:
|
| 105 |
graph = st.session_state.graph
|