awacke1 commited on
Commit
3eb1c6f
1 Parent(s): ed19212

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ def SetIframeURL(option_selected):
27
  st.components.v1.iframe(src, width, height, scrolling=True)
28
 
29
  try:
30
- options = ['Midjourney', 'RunwayML', 'ArtFromTextandImages', 'Boomy', 'Collager', 'DreamStudio', 'NightCafe' ]
31
  query_params = st.experimental_get_query_params()
32
  query_option = query_params['option'][0] #throws an exception when visiting http://host:port
33
  option_selected = st.sidebar.selectbox('Pick option', options, index=options.index(query_option))
@@ -35,7 +35,7 @@ try:
35
  st.experimental_set_query_params(option=option_selected)
36
  SetIframeURL(option_selected)
37
  except:
38
- options = ['Midjourney', 'RunwayML', 'ArtFromTextandImages', 'Boomy', 'Collager', 'DreamStudio', 'NightCafe' ]
39
  st.experimental_set_query_params(option=options[1]) # defaults to 1
40
  query_params = st.experimental_get_query_params()
41
  query_option = query_params['option'][0]
 
27
  st.components.v1.iframe(src, width, height, scrolling=True)
28
 
29
  try:
30
+ options = ['Midjourney', 'RunwayML', 'Boomy']
31
  query_params = st.experimental_get_query_params()
32
  query_option = query_params['option'][0] #throws an exception when visiting http://host:port
33
  option_selected = st.sidebar.selectbox('Pick option', options, index=options.index(query_option))
 
35
  st.experimental_set_query_params(option=option_selected)
36
  SetIframeURL(option_selected)
37
  except:
38
+ options = ['Midjourney', 'RunwayML', 'Boomy']
39
  st.experimental_set_query_params(option=options[1]) # defaults to 1
40
  query_params = st.experimental_get_query_params()
41
  query_option = query_params['option'][0]