mohamedamgad2002 commited on
Commit
16b62ad
·
1 Parent(s): e847281

minor changes

Browse files
Files changed (2) hide show
  1. app.py +4 -2
  2. assets/{plan.jpg → flight.jpg} +0 -0
app.py CHANGED
@@ -5,6 +5,7 @@ import matplotlib.pyplot as plt
5
  from pickle import load, dump
6
  import random
7
  import shap
 
8
 
9
  with open('preprocessing.pkl', 'rb') as file:
10
  preprocessor = load(file)
@@ -62,10 +63,11 @@ def summary_plot():
62
  st.pyplot(fig, bbox_inches='tight')
63
 
64
 
65
-
 
66
  features = input_features()
67
  st.write('# Flight Price Prediction')
68
- st.image('\\assets\plan.jpg')
69
  st.write('---')
70
  st.write('## Specified Input Parameters')
71
  st.write(features)
 
5
  from pickle import load, dump
6
  import random
7
  import shap
8
+ import os
9
 
10
  with open('preprocessing.pkl', 'rb') as file:
11
  preprocessor = load(file)
 
63
  st.pyplot(fig, bbox_inches='tight')
64
 
65
 
66
+ curr_dir = os.getcwd()
67
+ image_path = os.path.join(curr_dir, 'assets/flight.jpg')
68
  features = input_features()
69
  st.write('# Flight Price Prediction')
70
+ st.image(image_path)
71
  st.write('---')
72
  st.write('## Specified Input Parameters')
73
  st.write(features)
assets/{plan.jpg → flight.jpg} RENAMED
File without changes