Spaces:
Sleeping
Sleeping
Download 0_Introduction.py from aieye/weather_forecasting_tutorial: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/spaces/aieye/weather_forecasting_tutorial/resolve/aa539b76f8c5c19302c0621209cbcd4e69f856bf/0_Introduction.py
- Command line
-
hf download hf://spaces/aieye/weather_forecasting_tutorial@aa539b76f8c5c19302c0621209cbcd4e69f856bf/0_Introduction.py
-
curl -L -o 0_Introduction.py https://huggingface.co/spaces/aieye/weather_forecasting_tutorial/resolve/aa539b76f8c5c19302c0621209cbcd4e69f856bf/0_Introduction.py
1.12 kB
| import streamlit as st | |
| from utils.levels import complete_level, initialize_level, render_page, get_level | |
| from utils.login import initialize_login | |
| initialize_login() | |
| initialize_level() | |
| LEVEL=0 | |
| def intro_page(): | |
| st.header("Weather Forecasting") | |
| st.subheader("Introduction") | |
| st.write("""Welcome to the interactive tutorial on creating your very own Weather Forecasting Application!""") | |
| st.image( | |
| "https://media2.giphy.com/media/tja7MJ6DYOenIR4oDc/giphy.gif?cid=ecf05e47cbdu0obazcxzfmh83j8y7fc0mcpel6aobwqu75of&ep=v1_gifs_search&rid=giphy.gif&ct=g", | |
| use_column_width=True, | |
| ) | |
| st.write( | |
| """ | |
| In this tutorial, you will learn how to build a simple application that can forecast weather conditions to make informed decisions. Weather forecasting plays a pivotal role in our daily lives, influencing our travel plans, agricultural activities, energy consumption, and overall decision-making. | |
| """ | |
| ) | |
| st.info(f"Click on the button below to start the tutorial!") | |
| if st.button("I am Ready!"): | |
| complete_level(LEVEL) | |
| render_page(intro_page, LEVEL) |