generated from streamlit/basic-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c82ea2
commit 4789857
Showing
5 changed files
with
700 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.