Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,16 +2,26 @@ import streamlit as st
|
|
2 |
from PIL import Image
|
3 |
import hopsworks
|
4 |
import gradio as gr
|
|
|
5 |
|
6 |
#st.title('Prediction of air quality in Reykjavik, Iceland')
|
7 |
picture = Image.open('iceland_picture.jpg')
|
|
|
8 |
|
9 |
#project = hopsworks.login()
|
|
|
|
|
|
|
10 |
|
11 |
with gr.Blocks() as demo:
|
12 |
gr.Label("Prediction of air quality in Reykjavik, Iceland")
|
13 |
-
gr.Textbox(label=
|
14 |
gr.Textbox(label='day2')
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
|
17 |
demo.launch()
|
|
|
2 |
from PIL import Image
|
3 |
import hopsworks
|
4 |
import gradio as gr
|
5 |
+
import datetime
|
6 |
|
7 |
#st.title('Prediction of air quality in Reykjavik, Iceland')
|
8 |
picture = Image.open('iceland_picture.jpg')
|
9 |
+
st.image(picture)
|
10 |
|
11 |
#project = hopsworks.login()
|
12 |
+
today = datetime.date.today()
|
13 |
+
|
14 |
+
|
15 |
|
16 |
with gr.Blocks() as demo:
|
17 |
gr.Label("Prediction of air quality in Reykjavik, Iceland")
|
18 |
+
gr.Textbox(label=today)
|
19 |
gr.Textbox(label='day2')
|
20 |
+
gr.Textbox(label='day3')
|
21 |
+
gr.Textbox(label='day4')
|
22 |
+
gr.Textbox(label='day5')
|
23 |
+
gr.Textbox(label='day6')
|
24 |
+
gr.Textbox(label='day7')
|
25 |
|
26 |
|
27 |
demo.launch()
|