Nathanotal commited on
Commit
0a72c82
·
1 Parent(s): 7e7b6a6
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -6,11 +6,11 @@ import hopsworks
6
  #
7
  SYNTHETIC = True
8
 
9
- latestSurvivorImage = 'latest_survivor_pred.png'
10
- latestSurvivorPred = 'latest_survivor_label_pred.png'
11
- latestSurvivorLabel = 'latest_survivor_label_actual.png'
12
- recentHistory = 'df_recent_titanic.png'
13
- confusionMatrix = 'confusion_matrix.png'
14
 
15
  if SYNTHETIC:
16
  latestSurvivorImage += '_synthetic'
@@ -19,6 +19,12 @@ if SYNTHETIC:
19
  recentHistory += '_synthetic'
20
  confusionMatrix += '_synthetic'
21
 
 
 
 
 
 
 
22
  with gr.Blocks() as demo:
23
  # Login to hopsworks
24
  project = hopsworks.login()
 
6
  #
7
  SYNTHETIC = True
8
 
9
+ latestSurvivorImage = 'latest_survivor_pred'
10
+ latestSurvivorPred = 'latest_survivor_label_pred'
11
+ latestSurvivorLabel = 'latest_survivor_label_actual'
12
+ recentHistory = 'df_recent_titanic'
13
+ confusionMatrix = 'confusion_matrix'
14
 
15
  if SYNTHETIC:
16
  latestSurvivorImage += '_synthetic'
 
19
  recentHistory += '_synthetic'
20
  confusionMatrix += '_synthetic'
21
 
22
+ latestSurvivorImage += '.png'
23
+ latestSurvivorPred += '.png'
24
+ latestSurvivorLabel += '.png'
25
+ recentHistory += '.png'
26
+ confusionMatrix += '.png'
27
+
28
  with gr.Blocks() as demo:
29
  # Login to hopsworks
30
  project = hopsworks.login()