Commit ·
ed080f8
1
Parent(s): 64d50ce
uploading changes to template
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🏢
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: gray
|
|
|
|
| 1 |
---
|
| 2 |
+
title: My IS445 Example ID45086
|
| 3 |
emoji: 🏢
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: gray
|
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: ID45086')
|
| 14 |
|
| 15 |
+
st.text("The URL for this app is: https://huggingface.co/spaces/SharanyaBhardwaj/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 - 2011 to 2013")
|
| 67 |
|
| 68 |
tab1, tab2 = st.tabs(["Streamlit theme (default)", "Altair native theme"])
|
| 69 |
|