Spaces:
Sleeping
Sleeping
uploading changes to template
Browse files
app.py
CHANGED
|
@@ -10,9 +10,9 @@ import streamlit as st
|
|
| 10 |
import altair as alt
|
| 11 |
from vega_datasets import data
|
| 12 |
|
| 13 |
-
st.title('
|
| 14 |
|
| 15 |
-
st.text("The URL for this app is: https://huggingface.co/spaces/
|
| 16 |
|
| 17 |
source = data.seattle_weather()
|
| 18 |
|
|
@@ -33,7 +33,7 @@ points = (
|
|
| 33 |
alt.Chart()
|
| 34 |
.mark_point()
|
| 35 |
.encode(
|
| 36 |
-
alt.X("monthdate(date):T", title="Date"),
|
| 37 |
alt.Y(
|
| 38 |
"temp_max:Q",
|
| 39 |
title="Maximum Daily Temperature (C)",
|
|
@@ -63,7 +63,7 @@ bars = (
|
|
| 63 |
.add_params(click)
|
| 64 |
)
|
| 65 |
|
| 66 |
-
chart = alt.vconcat(points, bars, data=source, title="Seattle Weather
|
| 67 |
|
| 68 |
tab1, tab2 = st.tabs(["Streamlit theme (default)", "Altair native theme"])
|
| 69 |
|
|
|
|
| 10 |
import altair as alt
|
| 11 |
from vega_datasets import data
|
| 12 |
|
| 13 |
+
st.title('Streamlit App for IS445: ID26572')
|
| 14 |
|
| 15 |
+
st.text("The URL for this app is: https://huggingface.co/spaces/hyzhang00/is445_demo")
|
| 16 |
|
| 17 |
source = data.seattle_weather()
|
| 18 |
|
|
|
|
| 33 |
alt.Chart()
|
| 34 |
.mark_point()
|
| 35 |
.encode(
|
| 36 |
+
alt.X("monthdate(date):T", title="Date (Month Year)"),
|
| 37 |
alt.Y(
|
| 38 |
"temp_max:Q",
|
| 39 |
title="Maximum Daily Temperature (C)",
|
|
|
|
| 63 |
.add_params(click)
|
| 64 |
)
|
| 65 |
|
| 66 |
+
chart = alt.vconcat(points, bars, data=source, title="Seattle Weather - 2002 to 2007")
|
| 67 |
|
| 68 |
tab1, tab2 = st.tabs(["Streamlit theme (default)", "Altair native theme"])
|
| 69 |
|