Spaces:
Sleeping
Sleeping
Commit ·
c48efc0
1
Parent(s): d146d4c
remove redundancy
Browse files- agent.py +0 -3
- requirements.txt +3 -2
agent.py
CHANGED
|
@@ -20,15 +20,12 @@ from langchain_community.document_loaders.parsers.audio import (
|
|
| 20 |
OpenAIWhisperParserLocal,
|
| 21 |
)
|
| 22 |
|
| 23 |
-
#from langchain_community.document_loaders import AudioLoader, WhisperLoader
|
| 24 |
from langchain.chat_models import init_chat_model
|
| 25 |
from langchain.agents import initialize_agent, AgentType
|
| 26 |
from langchain_community.retrievers import BM25Retriever
|
| 27 |
-
from langchain.tools import Tool
|
| 28 |
from langchain_core.messages import AnyMessage, SystemMessage, HumanMessage
|
| 29 |
from langgraph.graph.message import add_messages
|
| 30 |
from langgraph.graph import START, StateGraph
|
| 31 |
-
|
| 32 |
from langgraph.prebuilt import ToolNode, tools_condition
|
| 33 |
|
| 34 |
from youtube_transcript_api import YouTubeTranscriptApi
|
|
|
|
| 20 |
OpenAIWhisperParserLocal,
|
| 21 |
)
|
| 22 |
|
|
|
|
| 23 |
from langchain.chat_models import init_chat_model
|
| 24 |
from langchain.agents import initialize_agent, AgentType
|
| 25 |
from langchain_community.retrievers import BM25Retriever
|
|
|
|
| 26 |
from langchain_core.messages import AnyMessage, SystemMessage, HumanMessage
|
| 27 |
from langgraph.graph.message import add_messages
|
| 28 |
from langgraph.graph import START, StateGraph
|
|
|
|
| 29 |
from langgraph.prebuilt import ToolNode, tools_condition
|
| 30 |
|
| 31 |
from youtube_transcript_api import YouTubeTranscriptApi
|
requirements.txt
CHANGED
|
@@ -3,12 +3,13 @@ requests
|
|
| 3 |
langchain
|
| 4 |
langchain-community
|
| 5 |
langchain-anthropic
|
|
|
|
|
|
|
|
|
|
| 6 |
smolagents
|
| 7 |
duckduckgo-search
|
| 8 |
wikipedia
|
| 9 |
pytesseract
|
| 10 |
Pillow
|
| 11 |
pymupdf
|
| 12 |
-
langgraph
|
| 13 |
-
langgraph
|
| 14 |
fire
|
|
|
|
| 3 |
langchain
|
| 4 |
langchain-community
|
| 5 |
langchain-anthropic
|
| 6 |
+
langchain-core
|
| 7 |
+
langchain-huggingface
|
| 8 |
+
langgraph
|
| 9 |
smolagents
|
| 10 |
duckduckgo-search
|
| 11 |
wikipedia
|
| 12 |
pytesseract
|
| 13 |
Pillow
|
| 14 |
pymupdf
|
|
|
|
|
|
|
| 15 |
fire
|