Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,11 @@ import google.generativeai as genai
|
|
| 9 |
from dotenv import load_dotenv
|
| 10 |
from urllib.parse import urlparse, parse_qs
|
| 11 |
import json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Load environment variables
|
| 14 |
load_dotenv()
|
|
@@ -248,6 +253,7 @@ For factual questions:
|
|
| 248 |
return answer
|
| 249 |
|
| 250 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
|
|
| 251 |
"""
|
| 252 |
Fetches all questions, runs the EnhancedAgent on them, submits all answers,
|
| 253 |
and displays the results.
|
|
|
|
| 9 |
from dotenv import load_dotenv
|
| 10 |
from urllib.parse import urlparse, parse_qs
|
| 11 |
import json
|
| 12 |
+
from agent import Agent
|
| 13 |
+
agent = Agent()
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
|
| 18 |
# Load environment variables
|
| 19 |
load_dotenv()
|
|
|
|
| 253 |
return answer
|
| 254 |
|
| 255 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
| 256 |
+
submitted_answer = agent(question_text)
|
| 257 |
"""
|
| 258 |
Fetches all questions, runs the EnhancedAgent on them, submits all answers,
|
| 259 |
and displays the results.
|