Thanh Vinh Vo
commited on
Commit
·
66e7772
1
Parent(s):
29a41be
update
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ import gradio as gr
|
|
| 7 |
import pandas as pd
|
| 8 |
import requests
|
| 9 |
import whisper
|
|
|
|
| 10 |
from PIL import Image
|
| 11 |
from smolagents import (
|
| 12 |
CodeAgent,
|
|
@@ -189,7 +190,7 @@ def get_wikipedia_page_url_by_year(wikipedia_page_name: str, year: int) -> str:
|
|
| 189 |
|
| 190 |
|
| 191 |
@tool
|
| 192 |
-
def get_wikipedia_section(section_name: str, soup_object):
|
| 193 |
"""
|
| 194 |
A tool that extracts a specific section from a Wikipedia page using BeautifulSoup.
|
| 195 |
|
|
|
|
| 7 |
import pandas as pd
|
| 8 |
import requests
|
| 9 |
import whisper
|
| 10 |
+
from bs4 import BeautifulSoup
|
| 11 |
from PIL import Image
|
| 12 |
from smolagents import (
|
| 13 |
CodeAgent,
|
|
|
|
| 190 |
|
| 191 |
|
| 192 |
@tool
|
| 193 |
+
def get_wikipedia_section(section_name: str, soup_object: BeautifulSoup):
|
| 194 |
"""
|
| 195 |
A tool that extracts a specific section from a Wikipedia page using BeautifulSoup.
|
| 196 |
|