Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
#
|
24 |
-
|
|
|
|
|
|
|
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 |
|