Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,17 +80,20 @@ def init_state() :
|
|
80 |
}
|
81 |
|
82 |
if not st.session_state.loaded_data:
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
94 |
|
95 |
def sidebar():
|
96 |
def retrieval_settings() :
|
|
|
80 |
}
|
81 |
|
82 |
if not st.session_state.loaded_data:
|
83 |
+
place=st.empty()
|
84 |
+
with place:
|
85 |
+
with st.status("Caricamento in corso...", expanded=True) as status:
|
86 |
+
st.write("Inizializzazione Ambiente")
|
87 |
+
time.sleep(1)
|
88 |
+
st.write("Inizializzazione Prompt")
|
89 |
+
options = requests.get(URL_PROMPT).json()
|
90 |
+
st.write("Inizializzazione Documenti")
|
91 |
+
documenti = requests.get(URL_DOCUMENTI).json()
|
92 |
+
st.session_state.options = {**option_personalizzata, **options}
|
93 |
+
st.session_state.documenti = documenti
|
94 |
+
st.session_state.loaded_data = True
|
95 |
+
status.update(label="Caricamento Completato", state="complete", expanded=False)
|
96 |
+
place.empty()
|
97 |
|
98 |
def sidebar():
|
99 |
def retrieval_settings() :
|