Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import streamlit as st
|
|
| 2 |
import requests
|
| 3 |
import torch
|
| 4 |
import numpy as np
|
|
|
|
| 5 |
import plotly.graph_objects as go
|
| 6 |
import plotly.express as px
|
| 7 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
@@ -12,7 +13,7 @@ from urllib.parse import urlparse
|
|
| 12 |
|
| 13 |
# βββββββββββββββββββββββββββββββββββββββββββββ
|
| 14 |
# π API KEY β PASTE YOUR NewsAPI KEY HERE
|
| 15 |
-
NEWS_API_KEY = "
|
| 16 |
# Get your free key at https://newsapi.org/register
|
| 17 |
# βββββββββββββββββββββββββββββββββββββββββββββ
|
| 18 |
|
|
|
|
| 2 |
import requests
|
| 3 |
import torch
|
| 4 |
import numpy as np
|
| 5 |
+
import os
|
| 6 |
import plotly.graph_objects as go
|
| 7 |
import plotly.express as px
|
| 8 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
|
|
| 13 |
|
| 14 |
# βββββββββββββββββββββββββββββββββββββββββββββ
|
| 15 |
# π API KEY β PASTE YOUR NewsAPI KEY HERE
|
| 16 |
+
`NEWS_API_KEY = os.getenv("NEWS_API_KEY")
|
| 17 |
# Get your free key at https://newsapi.org/register
|
| 18 |
# βββββββββββββββββββββββββββββββββββββββββββββ
|
| 19 |
|