Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ class BasicAgent:
|
|
34 |
|
35 |
@app.get("/questions")
|
36 |
def get_questions():
|
37 |
-
|
38 |
return JSONResponse(content=json.load(f))
|
39 |
|
40 |
def format_final_answer(self, answer: str) -> str:
|
|
|
34 |
|
35 |
@app.get("/questions")
|
36 |
def get_questions():
|
37 |
+
with open("questions.json", "r") as f:
|
38 |
return JSONResponse(content=json.load(f))
|
39 |
|
40 |
def format_final_answer(self, answer: str) -> str:
|