Toumaima commited on
Commit
d58e25a
·
verified ·
1 Parent(s): 15f7f51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -6,8 +6,6 @@ import warnings
6
  import pandas as pd
7
  from huggingface_hub import login
8
  import re
9
- from fastapi import FastAPI
10
- from fastapi.responses import JSONResponse
11
  import json
12
  from groq import Groq
13
 
@@ -32,15 +30,6 @@ class BasicAgent:
32
  If you are asked for a comma separated list, apply the above rules depending of whether the element
33
  to be put in the list is a number or a string."""
34
  )
35
-
36
- app = FastAPI()
37
-
38
- @app.get("/questions")
39
- def get_questions():
40
- with open("questions.json", "r") as f:
41
- data = json.load(f)
42
- return JSONResponse(content=data)
43
-
44
 
45
  def format_final_answer(self, answer: str) -> str:
46
  cleaned = " ".join(answer.split())
@@ -257,4 +246,4 @@ with gr.Blocks() as demo:
257
 
258
  if __name__ == "__main__":
259
  print("Launching Gradio Interface for Basic Agent Evaluation...")
260
- demo.launch(debug=True, share=False)
 
6
  import pandas as pd
7
  from huggingface_hub import login
8
  import re
 
 
9
  import json
10
  from groq import Groq
11
 
 
30
  If you are asked for a comma separated list, apply the above rules depending of whether the element
31
  to be put in the list is a number or a string."""
32
  )
 
 
 
 
 
 
 
 
 
33
 
34
  def format_final_answer(self, answer: str) -> str:
35
  cleaned = " ".join(answer.split())
 
246
 
247
  if __name__ == "__main__":
248
  print("Launching Gradio Interface for Basic Agent Evaluation...")
249
+ demo.launch(debug=True, share=False)