peter2000 commited on
Commit
5c681e1
1 Parent(s): 072536c

Update appStore/multiapp.py

Browse files
Files changed (1) hide show
  1. appStore/multiapp.py +3 -5
appStore/multiapp.py CHANGED
@@ -11,16 +11,15 @@ logger = logging.getLogger(__name__)
11
  if 'file' not in st.session_state:
12
  st.session_state['pipeline'] = None
13
 
14
- #Haystack Components
15
- @st.cache(hash_funcs={"builtins.SwigPyObject": lambda _: None},allow_output_mutation=True)
16
 
17
-
18
  class MultiApp:
19
  """
20
  Framework for combining multiple streamlit applications.
21
  """
22
  def __init__(self):
23
  self.apps = []
 
 
24
 
25
  def add_app(self, title, func):
26
  """Adds a new application.
@@ -38,12 +37,11 @@ class MultiApp:
38
  })
39
 
40
  def run(self):
41
- if 'file' not in st.session_state:
42
- st.session_state['file'] = None
43
 
44
  st.sidebar.write(format_func=lambda app: app['title'])
45
  image = Image.open('appStore/img/sdsn.png')
46
  st.sidebar.image(image)
 
47
  app = st.sidebar.radio(
48
  'Pages',
49
  self.apps,
11
  if 'file' not in st.session_state:
12
  st.session_state['pipeline'] = None
13
 
 
 
14
 
 
15
  class MultiApp:
16
  """
17
  Framework for combining multiple streamlit applications.
18
  """
19
  def __init__(self):
20
  self.apps = []
21
+ if 'file' not in st.session_state:
22
+ st.session_state['file'] = None
23
 
24
  def add_app(self, title, func):
25
  """Adds a new application.
37
  })
38
 
39
  def run(self):
 
 
40
 
41
  st.sidebar.write(format_func=lambda app: app['title'])
42
  image = Image.open('appStore/img/sdsn.png')
43
  st.sidebar.image(image)
44
+ st.sidebar.markdown("## 📌 Pages ")
45
  app = st.sidebar.radio(
46
  'Pages',
47
  self.apps,