Spaces:
Sleeping
Sleeping
FlyingFish760
commited on
Commit
·
9693537
1
Parent(s):
0c836c7
Add all files
Browse files- app.py +24 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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/df_recent.png")
|
| 11 |
+
# dataset_api.download("Resources/images/confusion_matrix.png")
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
with gr.Blocks() as demo:
|
| 15 |
+
with gr.Row():
|
| 16 |
+
with gr.Column():
|
| 17 |
+
gr.Label("Recent Prediction History")
|
| 18 |
+
input_image = gr.Image("df_recent.png", elem_id="recent-predictions")
|
| 19 |
+
# with gr.Column():
|
| 20 |
+
# gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
| 21 |
+
# input_img = gr.Image("confusion_matrix.png", elem_id="confusion-matrix")
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
demo.launch()
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
hopsworks
|