Demosthene-OR
commited on
Commit
•
992fd9e
1
Parent(s):
580d952
Add
Browse files
app.py
CHANGED
@@ -22,13 +22,15 @@ st.set_page_config (
|
|
22 |
|
23 |
# Si l'application tourne localement, session_state.Cloud == 0
|
24 |
# Si elle tourne sur le Cloud de Hugging Face, ==1
|
25 |
-
st.session_state.Cloud =
|
26 |
# En fonction de la valeur de varible précédente, le data path est différent
|
27 |
if st.session_state.Cloud == 0:
|
28 |
st.session_state.DataPath = "../data"
|
|
|
29 |
st.session_state.reCalcule = False
|
30 |
else:
|
31 |
st.session_state.DataPath = "data"
|
|
|
32 |
st.session_state.reCalcule = False
|
33 |
|
34 |
# Define the root folders depending on local/cloud run
|
|
|
22 |
|
23 |
# Si l'application tourne localement, session_state.Cloud == 0
|
24 |
# Si elle tourne sur le Cloud de Hugging Face, ==1
|
25 |
+
st.session_state.Cloud = 0
|
26 |
# En fonction de la valeur de varible précédente, le data path est différent
|
27 |
if st.session_state.Cloud == 0:
|
28 |
st.session_state.DataPath = "../data"
|
29 |
+
st.session_state.ImagePath = "../images"
|
30 |
st.session_state.reCalcule = False
|
31 |
else:
|
32 |
st.session_state.DataPath = "data"
|
33 |
+
st.session_state.ImagePath = "../images"
|
34 |
st.session_state.reCalcule = False
|
35 |
|
36 |
# Define the root folders depending on local/cloud run
|