Spaces:
Runtime error
Runtime error
first version
Browse files- app.py +18 -0
- requirements.txt +1 -0
app.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from PIL import Image
|
3 |
+
import hopsworks
|
4 |
+
|
5 |
+
project = hopsworks.login()
|
6 |
+
fs = project.get_feature_store()
|
7 |
+
|
8 |
+
dataset_api = project.get_dataset_api()
|
9 |
+
|
10 |
+
dataset_api.download("Resources/images/confusion_matrix.png")
|
11 |
+
|
12 |
+
with gr.Blocks() as demo:
|
13 |
+
with gr.Row():
|
14 |
+
with gr.Column():
|
15 |
+
gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
16 |
+
input_img = gr.Image("confusion_matrix.png", elem_id="confusion-matrix")
|
17 |
+
|
18 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
hopsworks
|