Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,11 @@ from dotenv import load_dotenv
|
|
3 |
import gradio as gr
|
4 |
import requests
|
5 |
|
6 |
-
from typing import List, Dict, Union
|
7 |
-
from dotenv import load_dotenv
|
8 |
import google.generativeai as genai
|
|
|
9 |
import requests
|
10 |
import wikipediaapi
|
|
|
11 |
|
12 |
load_dotenv()
|
13 |
|
@@ -33,7 +33,7 @@ class BasicAgent:
|
|
33 |
|
34 |
def __call__(self, question: str) -> str:
|
35 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
36 |
-
fixed_answer = self.agent.
|
37 |
print(f"Agent returning answer: {fixed_answer}")
|
38 |
return fixed_answer
|
39 |
|
|
|
3 |
import gradio as gr
|
4 |
import requests
|
5 |
|
|
|
|
|
6 |
import google.generativeai as genai
|
7 |
+
from typing import List, Dict, Union
|
8 |
import requests
|
9 |
import wikipediaapi
|
10 |
+
import pandas as pd
|
11 |
|
12 |
load_dotenv()
|
13 |
|
|
|
33 |
|
34 |
def __call__(self, question: str) -> str:
|
35 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
36 |
+
fixed_answer = self.agent.generate_response(question)
|
37 |
print(f"Agent returning answer: {fixed_answer}")
|
38 |
return fixed_answer
|
39 |
|