Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def getHeadlines():
|
|
27 |
return requests.get ("https://newsapi.org/v2/top-headlines?country=us&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content.decode("utf-8")
|
28 |
|
29 |
|
30 |
-
def predict(text, speaker):
|
31 |
if len(text.strip()) == 0:
|
32 |
return (16000, np.zeros(0).astype(np.int16))
|
33 |
|
|
|
27 |
return requests.get ("https://newsapi.org/v2/top-headlines?country=us&apiKey=3bca07c913ec4703a23f6ba03e15b30b").content.decode("utf-8")
|
28 |
|
29 |
|
30 |
+
def predict(text, speaker, preset):
|
31 |
if len(text.strip()) == 0:
|
32 |
return (16000, np.zeros(0).astype(np.int16))
|
33 |
|