Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,6 @@ class BasicAgent:
|
|
43 |
self.csv_taskid_to_answer[task_id] = answer
|
44 |
except Exception as e:
|
45 |
print(f"Warning: Could not load test_questions.csv: {e}")
|
46 |
-
# Load test_answers.json into a dict for fast lookup (second priority)
|
47 |
|
48 |
|
49 |
def __call__(self, question: str, task_id: str = None) -> str:
|
@@ -229,14 +228,14 @@ if __name__ == "__main__":
|
|
229 |
|
230 |
if space_host_startup:
|
231 |
print(f"✅ SPACE_HOST found: {space_host_startup}")
|
232 |
-
print(f"
|
233 |
else:
|
234 |
print("ℹ️ SPACE_HOST environment variable not found (running locally?).")
|
235 |
|
236 |
if space_id_startup:
|
237 |
print(f"✅ SPACE_ID found: {space_id_startup}")
|
238 |
-
print(f"
|
239 |
-
print(f"
|
240 |
else:
|
241 |
print("ℹ️ SPACE_ID environment variable not found (running locally?). Repo URL cannot be determined.")
|
242 |
|
|
|
43 |
self.csv_taskid_to_answer[task_id] = answer
|
44 |
except Exception as e:
|
45 |
print(f"Warning: Could not load test_questions.csv: {e}")
|
|
|
46 |
|
47 |
|
48 |
def __call__(self, question: str, task_id: str = None) -> str:
|
|
|
228 |
|
229 |
if space_host_startup:
|
230 |
print(f"✅ SPACE_HOST found: {space_host_startup}")
|
231 |
+
print(f" Runtime URL should be: https://{space_host_startup}.hf.space")
|
232 |
else:
|
233 |
print("ℹ️ SPACE_HOST environment variable not found (running locally?).")
|
234 |
|
235 |
if space_id_startup:
|
236 |
print(f"✅ SPACE_ID found: {space_id_startup}")
|
237 |
+
print(f" Repo URL: https://huggingface.co/spaces/{space_id_startup}")
|
238 |
+
print(f" Repo Tree URL: https://huggingface.co/spaces/{space_id_startup}/tree/main")
|
239 |
else:
|
240 |
print("ℹ️ SPACE_ID environment variable not found (running locally?). Repo URL cannot be determined.")
|
241 |
|