Spaces:
Runtime error
Runtime error
Nicolas Fremondiere commited on
Commit ·
4436f89
1
Parent(s): 601ee92
Change file tree
Browse files- agent/agent.py → agent.py +6 -6
- agent/__init__.py +0 -0
- agent/agent_code.py → agent_code.py +0 -0
- agent/agent_multimedia.py → agent_multimedia.py +0 -0
- agent/agent_websearch.py → agent_websearch.py +2 -4
- app.py +1 -1
- agent/get_question/hf_api.py → hf_api.py +0 -0
- agent/prompts.yaml → prompts.yaml +0 -0
- requirements.txt +0 -1
- agent/ressources_getter.py → ressources_getter.py +0 -0
agent/agent.py → agent.py
RENAMED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
-
from smolagents import Tool
|
| 2 |
import os
|
| 3 |
import asyncio
|
| 4 |
|
| 5 |
-
from
|
| 6 |
get_prompt_with_file_content, extract_text_from_file, convert_excel_to_text, delete_tmp_files
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
-
from
|
| 10 |
-
from
|
| 11 |
from smolagents import ToolCallingAgent, LiteLLMModel
|
| 12 |
from dotenv import load_dotenv
|
| 13 |
|
|
|
|
| 1 |
+
from smolagents import Tool
|
| 2 |
import os
|
| 3 |
import asyncio
|
| 4 |
|
| 5 |
+
from ressources_getter import save_file, \
|
| 6 |
get_prompt_with_file_content, extract_text_from_file, convert_excel_to_text, delete_tmp_files
|
| 7 |
+
from hf_api import get_file_by_task_id
|
| 8 |
+
from agent_websearch import create_wikipedia_agent
|
| 9 |
+
from agent_multimedia import create_multimedia_agent
|
| 10 |
+
from agent_code import create_code_analyzer_agent
|
| 11 |
from smolagents import ToolCallingAgent, LiteLLMModel
|
| 12 |
from dotenv import load_dotenv
|
| 13 |
|
agent/__init__.py
DELETED
|
File without changes
|
agent/agent_code.py → agent_code.py
RENAMED
|
File without changes
|
agent/agent_multimedia.py → agent_multimedia.py
RENAMED
|
File without changes
|
agent/agent_websearch.py → agent_websearch.py
RENAMED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
import wikipedia
|
| 2 |
import requests
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
-
import
|
| 5 |
-
from typing import List, Dict, Any, Optional
|
| 6 |
import os
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
from smolagents import CodeAgent, LiteLLMModel, tool, DuckDuckGoSearchTool
|
| 9 |
-
|
| 10 |
-
from datetime import datetime
|
| 11 |
|
| 12 |
# Configuration de Wikipedia en français
|
| 13 |
wikipedia.set_lang("fr")
|
|
|
|
| 1 |
import wikipedia
|
| 2 |
import requests
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
+
from typing import List, Dict, Any
|
|
|
|
| 5 |
import os
|
| 6 |
from dotenv import load_dotenv
|
| 7 |
from smolagents import CodeAgent, LiteLLMModel, tool, DuckDuckGoSearchTool
|
| 8 |
+
|
|
|
|
| 9 |
|
| 10 |
# Configuration de Wikipedia en français
|
| 11 |
wikipedia.set_lang("fr")
|
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
import requests
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
-
from
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
|
|
|
| 3 |
import requests
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
+
from agent import BasicAgent
|
| 7 |
|
| 8 |
# (Keep Constants as is)
|
| 9 |
# --- Constants ---
|
agent/get_question/hf_api.py → hf_api.py
RENAMED
|
File without changes
|
agent/prompts.yaml → prompts.yaml
RENAMED
|
File without changes
|
requirements.txt
CHANGED
|
@@ -11,7 +11,6 @@ litellm
|
|
| 11 |
python-dotenv
|
| 12 |
wikipedia-api
|
| 13 |
beautifulsoup4
|
| 14 |
-
duckduckgo-search
|
| 15 |
yt_dlp
|
| 16 |
google-generativeai
|
| 17 |
openpyxl
|
|
|
|
| 11 |
python-dotenv
|
| 12 |
wikipedia-api
|
| 13 |
beautifulsoup4
|
|
|
|
| 14 |
yt_dlp
|
| 15 |
google-generativeai
|
| 16 |
openpyxl
|
agent/ressources_getter.py → ressources_getter.py
RENAMED
|
File without changes
|