Spaces:
Runtime error
Runtime error
File size: 552 Bytes
a249880 8d5517c a249880 8d5517c 4f7325e a249880 0f33595 8d5517c 0f33595 8d5517c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import gradio as gr
import hopsworks
project = hopsworks.login()
dataset_api = project.get_dataset_api()
dataset_api.download("Resources/aqi/images/df_next_7_days.png", overwrite=True)
def update():
dataset_api.download("Resources/aqi/images/df_next_7_days.png", overwrite=True)
return "df_next_7_days.png"
with gr.Blocks() as demo:
with gr.Row():
with gr.Column():
gr.Label("Paris - AQI Predictions")
gr.Button("Update Predictions").click(update, None, gr.Image("df_next_7_days.png"))
demo.launch()
|