Demosthene-OR commited on
Commit
86d6991
·
1 Parent(s): 1deac58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -23,20 +23,9 @@ st.set_page_config (
23
 
24
  # Si l'application tourne localement, session_state.Cloud == 0
25
  # Si elle tourne sur le Cloud de Hugging Face, ==1
26
- st.session_state.Cloud = 1
27
  st.session_state.DataPath = "data"
28
  st.session_state.ImagePath = "images"
29
- st.session_state.reCalcule = False
30
-
31
- # Define the root folders depending on local/cloud run
32
- # thisfile = os.path.abspath(__file__)
33
- # if ('/' in thisfile):
34
- # os.chdir(os.path.dirname(thisfile))
35
-
36
- # Nécessaire pour la version windows 11
37
- if st.session_state.Cloud == 0:
38
- os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'python'
39
-
40
 
41
  # Tabs in the ./tabs folder, imported here.
42
  from tabs import playground
 
23
 
24
  # Si l'application tourne localement, session_state.Cloud == 0
25
  # Si elle tourne sur le Cloud de Hugging Face, ==1
 
26
  st.session_state.DataPath = "data"
27
  st.session_state.ImagePath = "images"
28
+ st.session_state.reCalcule = False
 
 
 
 
 
 
 
 
 
 
29
 
30
  # Tabs in the ./tabs folder, imported here.
31
  from tabs import playground