zaursamedov1 commited on
Commit
752029d
·
verified ·
1 Parent(s): 728697f

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -2,9 +2,16 @@ import pandas as pd
2
  import numpy as np
3
  import plotly.graph_objects as go
4
  import gradio as gr
 
 
 
 
 
 
 
5
 
6
  # Load the data
7
- df = pd.read_csv('/content/INSTITUTIONAL_INVESTORS_SCORE.csv')
8
 
9
  # Clean the data
10
  df = df.dropna(subset=['final_score'])
 
2
  import numpy as np
3
  import plotly.graph_objects as go
4
  import gradio as gr
5
+ import os
6
+
7
+ # Get the current directory
8
+ current_dir = os.path.dirname(os.path.abspath(__file__))
9
+
10
+ # Construct the file path
11
+ file_path = os.path.join(current_dir, 'INSTITUTIONAL_INVESTORS_SCORE.csv')
12
 
13
  # Load the data
14
+ df = pd.read_csv(file_path)
15
 
16
  # Clean the data
17
  df = df.dropna(subset=['final_score'])