Toumaima commited on
Commit
6f4eefa
·
verified ·
1 Parent(s): 317104f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -6,6 +6,7 @@ import warnings
6
  import pandas as pd
7
  from huggingface_hub import login
8
  import re
 
9
  from groq import Groq
10
 
11
  # --- Constants ---
@@ -30,6 +31,12 @@ class BasicAgent:
30
  to be put in the list is a number or a string."""
31
  )
32
 
 
 
 
 
 
 
33
  def format_final_answer(self, answer: str) -> str:
34
  cleaned = " ".join(answer.split())
35
  return f"FINAL ANSWER: {cleaned}"
 
6
  import pandas as pd
7
  from huggingface_hub import login
8
  import re
9
+ import json
10
  from groq import Groq
11
 
12
  # --- Constants ---
 
31
  to be put in the list is a number or a string."""
32
  )
33
 
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:
41
  cleaned = " ".join(answer.split())
42
  return f"FINAL ANSWER: {cleaned}"