Spaces:
Runtime error
Runtime error
ZephyruSalsify
commited on
Commit
•
8bb41bb
1
Parent(s):
067dbd3
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
|
|
|
|
|
|
4 |
# Load the text classification model pipeline
|
5 |
analysis = pipeline("text-classification", model='ZephyruSalsify/FinNews_SentimentAnalysis_Test')
|
6 |
-
classification = pipeline("text-classification", model="nickmuchi/finbert-tone-finetuned-finance-topic-classification", token=
|
7 |
|
8 |
st.set_page_config(page_title="Financial News Analysis", page_icon="♕")
|
9 |
st.header("Make Analysis for Financial News")
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
access = "hf_"
|
5 |
+
token = "hhbFNpjKohezoexWMlyPUpvJQLWlaFhJaa"
|
6 |
+
|
7 |
# Load the text classification model pipeline
|
8 |
analysis = pipeline("text-classification", model='ZephyruSalsify/FinNews_SentimentAnalysis_Test')
|
9 |
+
classification = pipeline("text-classification", model="nickmuchi/finbert-tone-finetuned-finance-topic-classification", token=access+token)
|
10 |
|
11 |
st.set_page_config(page_title="Financial News Analysis", page_icon="♕")
|
12 |
st.header("Make Analysis for Financial News")
|