zetaah commited on
Commit
018ef96
1 Parent(s): 4b7261e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -19,9 +19,14 @@ if GENAI_API_KEY is None:
19
  st.error("API Key not found. Please set the `GENAI_API_KEY` environment variable.")
20
  st.stop() # Stop execution if the key is missing
21
 
 
 
22
 
23
- # Data File Path
24
- DATA_FILE = "./data_tsa.json"
 
 
 
25
 
26
  # --- Helper Functions ---
27
 
 
19
  st.error("API Key not found. Please set the `GENAI_API_KEY` environment variable.")
20
  st.stop() # Stop execution if the key is missing
21
 
22
+ # Get the current working directory
23
+ current_directory = os.getcwd()
24
 
25
+ # Define the file name
26
+ file_name = "data_tsa.json"
27
+
28
+ # Build the full path to the JSON file
29
+ DATA_FILE = os.path.join(current_directory, file_name)
30
 
31
  # --- Helper Functions ---
32