Skip to content

Commit

Permalink
Modified App.py
Browse files Browse the repository at this point in the history
- Added synamic paths for csv files
  • Loading branch information
RashmikaDushan committed Oct 7, 2024
1 parent 5452480 commit 8be2ad9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
app = Flask(__name__)
CORS(app)

BASE_DIR = os.getcwd()
# Path to your CSV file
CSV_FILE_PATH = './data/Planets.csv'
CSV_FILE_PATH = os.path.join(BASE_DIR,'data','planets.csv')
exoplanets_table = None
# Scale the distance
distance_scaler = 100
Expand Down

0 comments on commit 8be2ad9

Please sign in to comment.