Streamlit App for Word Clouds
Learn how to build a complete web app using Streamlit.
We'll cover the following...
Load the data
Before writing any code for the Streamlit app, we need to load the data from our JSON files.
def load_data():
with open('data/weekly.json','r') as file:
weekly_keywords = json.load(file)
with open('data/combined.json') as file:
combined_keyword = json.load(file)
dates = [date for date in weekly_keywords]
return combined_keyword,weekly_keywords,dates
Select the image mask
We’ll also return all the dates for which we collected ...