Spaces:
Runtime error
Runtime error
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -82,7 +82,7 @@ def detect_non_commutative_subset(table_text: str) -> str:
|
|
| 82 |
Returns:
|
| 83 |
str: Comma-separated list of elements in alphabetical order that are involved in non-commutative cases.
|
| 84 |
"""
|
| 85 |
-
print(
|
| 86 |
try:
|
| 87 |
import re
|
| 88 |
from collections import defaultdict
|
|
@@ -122,7 +122,7 @@ def extract_wikipedia_section_html(page_title: str, section_title: str, mode: st
|
|
| 122 |
str: The section content based on the mode, or an error message if not found.
|
| 123 |
"""
|
| 124 |
|
| 125 |
-
print(f"🛠️ extract_wikipedia_section_html called
|
| 126 |
|
| 127 |
try:
|
| 128 |
wikipedia.set_lang("en")
|
|
@@ -206,7 +206,7 @@ def filter_vegetables(items: list[str]) -> list[str]:
|
|
| 206 |
|
| 207 |
# List of all tools
|
| 208 |
all_tools = [
|
| 209 |
-
|
| 210 |
detect_non_commutative_subset,
|
| 211 |
reverse_sentence,
|
| 212 |
filter_vegetables,
|
|
|
|
| 82 |
Returns:
|
| 83 |
str: Comma-separated list of elements in alphabetical order that are involved in non-commutative cases.
|
| 84 |
"""
|
| 85 |
+
print("🛠️ detect_non_commutative_subset called")
|
| 86 |
try:
|
| 87 |
import re
|
| 88 |
from collections import defaultdict
|
|
|
|
| 122 |
str: The section content based on the mode, or an error message if not found.
|
| 123 |
"""
|
| 124 |
|
| 125 |
+
print(f"🛠️ extract_wikipedia_section_html called")
|
| 126 |
|
| 127 |
try:
|
| 128 |
wikipedia.set_lang("en")
|
|
|
|
| 206 |
|
| 207 |
# List of all tools
|
| 208 |
all_tools = [
|
| 209 |
+
search_featured_articles_by_date_range,
|
| 210 |
detect_non_commutative_subset,
|
| 211 |
reverse_sentence,
|
| 212 |
filter_vegetables,
|