Spaces:
Sleeping
Sleeping
refactor code to use Hugging Face spaces and update dependencies
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def main(stock):
|
|
125 |
model="mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis"
|
126 |
|
127 |
#Scraping top data from google news
|
128 |
-
google_news = GNews(max_results=50, period='
|
129 |
Company_news=google_news.get_news(stock + "stock")
|
130 |
df=pd.DataFrame(Company_news)
|
131 |
print(df)
|
|
|
125 |
model="mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis"
|
126 |
|
127 |
#Scraping top data from google news
|
128 |
+
google_news = GNews(max_results=50, period='45d')
|
129 |
Company_news=google_news.get_news(stock + "stock")
|
130 |
df=pd.DataFrame(Company_news)
|
131 |
print(df)
|