Spaces:
Build error
Build error
Updating app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,9 @@ import requests
|
|
| 4 |
from newspaper import Article
|
| 5 |
import time
|
| 6 |
from langdetect import detect
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
# Load environment variables from .env file
|
| 10 |
API_KEY = os.getenv('API_KEY')
|
| 11 |
|
|
|
|
| 4 |
from newspaper import Article
|
| 5 |
import time
|
| 6 |
from langdetect import detect
|
| 7 |
+
import nltk
|
| 8 |
|
| 9 |
+
nltk.download('punkt')
|
| 10 |
# Load environment variables from .env file
|
| 11 |
API_KEY = os.getenv('API_KEY')
|
| 12 |
|