Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JalehRojaSadeghi authored Jun 2, 2024
1 parent 2c82ea2 commit 4789857
Show file tree
Hide file tree
Showing 5 changed files with 700 additions and 0 deletions.
250 changes: 250 additions & 0 deletions ABM.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions ABM.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
"""
Created on Sun Jun 2 10:53:28 2024
@author: jsadeghi
"""

import streamlit.components.v1 as components
import streamlit as st
from PIL import Image

# Load the HTML file in Streamlit
st.sidebar.title('Choose your favorite output')
option=st.sidebar.selectbox('select graph',('network','at risk projects', 'graph'))


if option=='network':

HtmlFile = open('ABM.html', 'r', encoding='utf-8')
source_code = HtmlFile.read()
components.html(source_code, height=500)

if option == 'at risk projects':
image = Image.open('ABM_atriskprojects.jpg')
st.image(image, use_column_width=True)

if option == 'graph':
image = Image.open('ABM_graph.jpg')
st.image(image, use_column_width=True)
Binary file added ABM_atriskprojects.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
421 changes: 421 additions & 0 deletions ABM_filterEmbed.html

Large diffs are not rendered by default.

Binary file added ABM_graph.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4789857

Please sign in to comment.