Spaces:
Sleeping
Sleeping
Zanqi commited on
Commit ·
58a396c
1
Parent(s): a6b8701
Fix typos in Gradio_UI.py and requirements.txt; update import statement in web_search.py
Browse files- Gradio_UI.py +2 -2
- requirements.txt +1 -1
- tools/web_search.py +1 -1
Gradio_UI.py
CHANGED
|
@@ -271,7 +271,7 @@ class GradioUI:
|
|
| 271 |
None,
|
| 272 |
"https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/communication/Alfred.png",
|
| 273 |
),
|
| 274 |
-
|
| 275 |
scale=1,
|
| 276 |
)
|
| 277 |
# If an upload folder is provided, enable the upload feature
|
|
@@ -290,7 +290,7 @@ class GradioUI:
|
|
| 290 |
[stored_messages, text_input],
|
| 291 |
).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
|
| 292 |
|
| 293 |
-
demo.launch(debug=True,
|
| 294 |
|
| 295 |
|
| 296 |
__all__ = ["stream_to_gradio", "GradioUI"]
|
|
|
|
| 271 |
None,
|
| 272 |
"https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/communication/Alfred.png",
|
| 273 |
),
|
| 274 |
+
resizable=True,
|
| 275 |
scale=1,
|
| 276 |
)
|
| 277 |
# If an upload folder is provided, enable the upload feature
|
|
|
|
| 290 |
[stored_messages, text_input],
|
| 291 |
).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
|
| 292 |
|
| 293 |
+
demo.launch(debug=True, **kwargs)
|
| 294 |
|
| 295 |
|
| 296 |
__all__ = ["stream_to_gradio", "GradioUI"]
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
markdownify
|
| 2 |
smolagents==1.13.0
|
| 3 |
requests
|
| 4 |
-
|
| 5 |
pandas
|
|
|
|
| 1 |
markdownify
|
| 2 |
smolagents==1.13.0
|
| 3 |
requests
|
| 4 |
+
ddgs
|
| 5 |
pandas
|
tools/web_search.py
CHANGED
|
@@ -12,7 +12,7 @@ class DuckDuckGoSearchTool(Tool):
|
|
| 12 |
super().__init__()
|
| 13 |
self.max_results = max_results
|
| 14 |
try:
|
| 15 |
-
from
|
| 16 |
except ImportError as e:
|
| 17 |
raise ImportError(
|
| 18 |
"You must install package `duckduckgo_search` to run this tool: for instance run `pip install duckduckgo-search`."
|
|
|
|
| 12 |
super().__init__()
|
| 13 |
self.max_results = max_results
|
| 14 |
try:
|
| 15 |
+
from ddgs import DDGS
|
| 16 |
except ImportError as e:
|
| 17 |
raise ImportError(
|
| 18 |
"You must install package `duckduckgo_search` to run this tool: for instance run `pip install duckduckgo-search`."
|