Update setup_and_load_data
Browse files
app.py
CHANGED
@@ -173,16 +173,20 @@ def setup_and_load_data():
|
|
173 |
"""Clones the repo if not present and loads data."""
|
174 |
repo_url = "https://github.com/RextonRZ/GenAIEyeTrackingCleanedDataset"
|
175 |
repo_dir = "GenAIEyeTrackingCleanedDataset"
|
176 |
-
|
177 |
if not os.path.exists(repo_dir):
|
178 |
print(f"Cloning data repository from {repo_url}...")
|
179 |
git.Repo.clone_from(repo_url, repo_dir)
|
180 |
else:
|
181 |
print("Data repository already exists.")
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
|
|
|
|
|
|
|
|
186 |
analyzer = EnhancedAIvsRealGazeAnalyzer().load_and_process_data(base_path, response_file)
|
187 |
return analyzer
|
188 |
|
|
|
173 |
"""Clones the repo if not present and loads data."""
|
174 |
repo_url = "https://github.com/RextonRZ/GenAIEyeTrackingCleanedDataset"
|
175 |
repo_dir = "GenAIEyeTrackingCleanedDataset"
|
176 |
+
|
177 |
if not os.path.exists(repo_dir):
|
178 |
print(f"Cloning data repository from {repo_url}...")
|
179 |
git.Repo.clone_from(repo_url, repo_dir)
|
180 |
else:
|
181 |
print("Data repository already exists.")
|
182 |
+
|
183 |
+
# --- THIS IS THE CORRECTED PART ---
|
184 |
+
# The data files are in the main repo directory, not a subfolder
|
185 |
+
base_path = repo_dir
|
186 |
+
# The response file is also in the main directory and has a different name
|
187 |
+
response_file = os.path.join(repo_dir, "GenAI Response.xlsx")
|
188 |
+
# --- END OF CORRECTION ---
|
189 |
+
|
190 |
analyzer = EnhancedAIvsRealGazeAnalyzer().load_and_process_data(base_path, response_file)
|
191 |
return analyzer
|
192 |
|