Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -15,9 +15,8 @@ from typing import Dict, List, Any, Optional
|
|
| 15 |
|
| 16 |
# Import the GAIA agent modules
|
| 17 |
from gaiaX.config import (
|
| 18 |
-
logger, CONFIG, HF_USERNAME, OPENAI_API_KEY,
|
| 19 |
-
TAVILY_API_KEY,
|
| 20 |
-
API_BASE_URL, validate_env_vars
|
| 21 |
)
|
| 22 |
from gaiaX.agent import initialize_agent, get_agent_response
|
| 23 |
from gaiaX.question_handlers import process_question, detect_question_type
|
|
@@ -225,13 +224,6 @@ with gr.Blocks() as demo:
|
|
| 225 |
This interface uses the modular GAIA Benchmark Agent to process questions from the GAIA benchmark.
|
| 226 |
The agent uses LangChain and OpenAI's language models to analyze questions, retrieve relevant context,
|
| 227 |
and generate accurate answers across various domains of AI and machine learning.
|
| 228 |
-
|
| 229 |
-
**Enhanced Capabilities:**
|
| 230 |
-
- Web search via SerpAPI for real-time information
|
| 231 |
-
- YouTube integration for video content search and transcript analysis
|
| 232 |
-
- Tavily AI-optimized search for complex queries
|
| 233 |
-
|
| 234 |
-
To enable these features, make sure to set the appropriate API keys in your Hugging Face Space secrets.
|
| 235 |
"""
|
| 236 |
)
|
| 237 |
|
|
|
|
| 15 |
|
| 16 |
# Import the GAIA agent modules
|
| 17 |
from gaiaX.config import (
|
| 18 |
+
logger, CONFIG, HF_USERNAME, OPENAI_API_KEY,
|
| 19 |
+
TAVILY_API_KEY, API_BASE_URL, validate_env_vars
|
|
|
|
| 20 |
)
|
| 21 |
from gaiaX.agent import initialize_agent, get_agent_response
|
| 22 |
from gaiaX.question_handlers import process_question, detect_question_type
|
|
|
|
| 224 |
This interface uses the modular GAIA Benchmark Agent to process questions from the GAIA benchmark.
|
| 225 |
The agent uses LangChain and OpenAI's language models to analyze questions, retrieve relevant context,
|
| 226 |
and generate accurate answers across various domains of AI and machine learning.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
"""
|
| 228 |
)
|
| 229 |
|