Demosthene-OR
commited on
Commit
•
4014ea8
1
Parent(s):
fb025ec
Add
Browse files
app.py
CHANGED
@@ -30,15 +30,13 @@ if st.session_state.Cloud == 0:
|
|
30 |
st.session_state.reCalcule = False
|
31 |
else:
|
32 |
st.session_state.DataPath = "data"
|
33 |
-
st.session_state.ImagePath = "
|
34 |
st.session_state.reCalcule = False
|
35 |
|
36 |
# Define the root folders depending on local/cloud run
|
37 |
-
thisfile = os.path.abspath(__file__)
|
38 |
-
|
39 |
-
|
40 |
-
os.chdir(os.path.dirname(thisfile))
|
41 |
-
print("Path after:",os.path.abspath(__file__))
|
42 |
|
43 |
# Nécessaire pour la version windows 11
|
44 |
if st.session_state.Cloud == 0:
|
|
|
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
|
37 |
+
# thisfile = os.path.abspath(__file__)
|
38 |
+
# if ('/' in thisfile):
|
39 |
+
# os.chdir(os.path.dirname(thisfile))
|
|
|
|
|
40 |
|
41 |
# Nécessaire pour la version windows 11
|
42 |
if st.session_state.Cloud == 0:
|