Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,10 +28,12 @@ from collections import defaultdict
|
|
| 28 |
from pytube import YouTube
|
| 29 |
import wikipediaapi
|
| 30 |
from langchain.agents import initialize_agent, Tool
|
| 31 |
-
from langchain.llms import HuggingFaceHub
|
| 32 |
-
from langchain.tools import PythonREPL
|
| 33 |
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
# (Keep Constants as is)
|
| 36 |
# --- Constants ---
|
| 37 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 28 |
from pytube import YouTube
|
| 29 |
import wikipediaapi
|
| 30 |
from langchain.agents import initialize_agent, Tool
|
|
|
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
+
|
| 34 |
+
from langchain_community.llms import HuggingFaceHub
|
| 35 |
+
from langchain_community.tools import PythonREPL
|
| 36 |
+
|
| 37 |
# (Keep Constants as is)
|
| 38 |
# --- Constants ---
|
| 39 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|