Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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', '
|
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', '
|
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]
|