Enric Perpinyà Pitarch
commited on
Commit
•
275a19e
1
Parent(s):
c525538
Last commmit?
Browse files- app.py +17 -0
- requirements.txt +3 -0
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from PIL import Image
|
3 |
+
import hopsworks
|
4 |
+
|
5 |
+
project = hopsworks.login(project="id2223_enric")
|
6 |
+
fs = project.get_feature_store()
|
7 |
+
|
8 |
+
dataset_api = project.get_dataset_api()
|
9 |
+
|
10 |
+
dataset_api.download("Resources/images/scatter_plot.png", overwrite=True)
|
11 |
+
|
12 |
+
|
13 |
+
with gr.Blocks() as demo:
|
14 |
+
with gr.Row():
|
15 |
+
gr.Label("Scatter Plot of the today's new score vs the predicted score")
|
16 |
+
input_img = gr.Image("scatter_plot.png", elem_id="predicted-img")
|
17 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
hopsworks
|
2 |
+
gradio
|
3 |
+
Image
|