Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def predict(text, speaker):
|
|
28 |
|
29 |
# text = getNews ()
|
30 |
# inputs = processor(text=text, return_tensors="pt")
|
31 |
-
inputs = processor(requests.get ("https://newsapi.org/v2/top-headlines?country=us&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content,
|
32 |
return_tensors="pt")
|
33 |
|
34 |
# limit input length
|
|
|
28 |
|
29 |
# text = getNews ()
|
30 |
# inputs = processor(text=text, return_tensors="pt")
|
31 |
+
inputs = processor(text=requests.get ("https://newsapi.org/v2/top-headlines?country=us&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content,
|
32 |
return_tensors="pt")
|
33 |
|
34 |
# limit input length
|