whispy commited on
Commit
39e136e
1 Parent(s): b1d7b07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -1,11 +1,8 @@
1
  import gradio as gr
2
- import numpy as np
3
  from PIL import Image
4
  import requests
5
- import matplotlib.pyplot as plt
6
  import hopsworks
7
  import joblib
8
- import pandas as pd
9
 
10
  # Connect to Hopsworks
11
  project = hopsworks.login(project="finetune")
@@ -49,15 +46,15 @@ with gr.Blocks() as demo:
49
  with gr.Row():
50
  btn = gr.Button("New prediction").style(full_width=True)
51
  with gr.Row():
52
- plot_pred = gr.Image(label="Predicted snow height").style(height=500) # plotted graph
53
  with gr.Row():
54
  #input_img1 = gr.Image("1.png", elem_id="Day 1")
55
- img1 = gr.Image()
56
- img2 = gr.Image()
57
- img3 = gr.Image()
58
- img4 = gr.Image()
59
- img5 = gr.Image()
60
- img6 = gr.Image()
61
 
62
  with gr.TabItem("Accuracy of past 10 days"):
63
  with gr.Row():
 
1
  import gradio as gr
 
2
  from PIL import Image
3
  import requests
 
4
  import hopsworks
5
  import joblib
 
6
 
7
  # Connect to Hopsworks
8
  project = hopsworks.login(project="finetune")
 
46
  with gr.Row():
47
  btn = gr.Button("New prediction").style(full_width=True)
48
  with gr.Row():
49
+ plot_pred = gr.Image(label="Predicted snow height").style(height=400) # plotted graph
50
  with gr.Row():
51
  #input_img1 = gr.Image("1.png", elem_id="Day 1")
52
+ img1 = gr.Image().style(width=50)
53
+ img2 = gr.Image().style(width=50)
54
+ img3 = gr.Image().style(width=50)
55
+ img4 = gr.Image().style(width=50)
56
+ img5 = gr.Image().style(width=50)
57
+ img6 = gr.Image().style(width=50)
58
 
59
  with gr.TabItem("Accuracy of past 10 days"):
60
  with gr.Row():