Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tractorjuice authored Jun 17, 2024
1 parent 48fd7cb commit 7bc9ed7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,6 @@ def update(num):
parsed_map = parse_wardley_map(st.session_state.map_text)
ani = animate_wardley_map(parsed_map)

# Display animation in Streamlit (using iframe)
iframe_html = f'<iframe srcdoc="{ani.to_jshtml()}" width="100%" height="600px"></iframe>'
st.markdown(iframe_html, unsafe_allow_html=True)
# Display animation in Streamlit
ani_html = ani.to_jshtml()
components.html(ani_html, height=600)

0 comments on commit 7bc9ed7

Please sign in to comment.