Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
import wikipedia
|
5 |
|
6 |
def extract_article_text(url):
|
7 |
-
|
8 |
return text
|
9 |
|
10 |
extractor = gr.Interface(extract_article_text, 'text', 'text')
|
|
|
4 |
import wikipedia
|
5 |
|
6 |
def extract_article_text(url):
|
7 |
+
text = wikipedia.page(pageid=url).content
|
8 |
return text
|
9 |
|
10 |
extractor = gr.Interface(extract_article_text, 'text', 'text')
|