TroglodyteDerivations commited on
Commit
1ae1ad8
1 Parent(s): d566960

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Set the title of the Streamlit app
4
+ st.title("Bluesky 2M World Languages Plotly | Folium Visualizations")
5
+
6
+ # Display the first visualization from fig_countries.html
7
+ st.header("Countries Visualization")
8
+ with open("fig_countries.html", "r", encoding="utf-8") as f:
9
+ countries_html = f.read()
10
+ st.components.v1.html(countries_html, width=800, height=600, scrolling=True)
11
+
12
+ # Display the second visualization from fig_languages.html
13
+ st.header("Languages Visualization")
14
+ with open("fig_languages.html", "r", encoding="utf-8") as f:
15
+ languages_html = f.read()
16
+ st.components.v1.html(languages_html, width=800, height=600, scrolling=True)
17
+
18
+ # Display the third visualization from world_map.html
19
+ st.header("World Map Visualization")
20
+ with open("world_map.html", "r", encoding="utf-8") as f:
21
+ world_map_html = f.read()
22
+ st.components.v1.html(world_map_html, width=800, height=600, scrolling=True)