Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,12 +7,13 @@ from bs4 import BeautifulSoup
|
|
7 |
import re
|
8 |
|
9 |
|
10 |
-
from huggingface_hub import login
|
11 |
-
login()
|
12 |
|
13 |
|
|
|
14 |
from transformers import pipeline
|
15 |
-
pipe = pipeline("text-generation", model="
|
16 |
|
17 |
def get_clean_text(url):
|
18 |
try:
|
|
|
7 |
import re
|
8 |
|
9 |
|
10 |
+
# from huggingface_hub import login
|
11 |
+
# login()
|
12 |
|
13 |
|
14 |
+
# Use a pipeline as a high-level helper
|
15 |
from transformers import pipeline
|
16 |
+
pipe = pipeline("text-generation", model="openai-community/gpt2-medium")
|
17 |
|
18 |
def get_clean_text(url):
|
19 |
try:
|