Spaces:
Runtime error
Runtime error
Cleanup
Browse files- requirements.txt +0 -2
- text_download.py +1 -0
requirements.txt
CHANGED
@@ -1,4 +1,2 @@
|
|
1 |
-
accelerate @ git+https://github.com/huggingface/accelerate
|
2 |
transformers @ git+https://github.com/huggingface/transformers@test_composition
|
3 |
bs4
|
4 |
-
gradio
|
|
|
|
|
1 |
transformers @ git+https://github.com/huggingface/transformers@test_composition
|
2 |
bs4
|
|
text_download.py
CHANGED
@@ -14,6 +14,7 @@ class TextDownloadTool(Tool):
|
|
14 |
|
15 |
inputs = ['text']
|
16 |
outputs = ['text']
|
|
|
17 |
|
18 |
def __call__(self, url):
|
19 |
return BeautifulSoup(requests.get(url).text, features="html.parser").get_text()
|
|
|
14 |
|
15 |
inputs = ['text']
|
16 |
outputs = ['text']
|
17 |
+
description = TEXT_DOWNLOAD_DESCRIPTION
|
18 |
|
19 |
def __call__(self, url):
|
20 |
return BeautifulSoup(requests.get(url).text, features="html.parser").get_text()
|