Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
@@ -373,7 +373,7 @@ def reverse_text(text: str) -> str:
|
|
373 |
return text[::-1].replace("\\", "") # Handle escaped quotes
|
374 |
|
375 |
# Load the JSON file
|
376 |
-
with open("
|
377 |
data = json.load(f)
|
378 |
|
379 |
# Convert each question into a Document
|
|
|
373 |
return text[::-1].replace("\\", "") # Handle escaped quotes
|
374 |
|
375 |
# Load the JSON file
|
376 |
+
with open("questions.json", "r", encoding="utf-8") as f:
|
377 |
data = json.load(f)
|
378 |
|
379 |
# Convert each question into a Document
|