Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def fetch_articles(ticker):
|
|
67 |
article = data["results"][0]
|
68 |
title = article.get("title", "")
|
69 |
description = article.get("description", "")
|
70 |
-
return [title
|
71 |
else:
|
72 |
return [f"No news articles found for {ticker}."]
|
73 |
except Exception as e:
|
|
|
67 |
article = data["results"][0]
|
68 |
title = article.get("title", "")
|
69 |
description = article.get("description", "")
|
70 |
+
return [title]
|
71 |
else:
|
72 |
return [f"No news articles found for {ticker}."]
|
73 |
except Exception as e:
|