Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,13 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
8 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
9 |
|
10 |
# Setting the page title
|
11 |
-
st.title("
|
12 |
|
13 |
# Input option: Text or URL
|
14 |
input_option = st.radio("Choose input type:", ["Text Input", "URL Input"])
|
15 |
|
16 |
if input_option == "Text Input":
|
17 |
-
text_input = st.text_area("Enter Financial News:", "DEMO :
|
18 |
else:
|
19 |
url_input = st.text_input("Enter URL to scrape headline:")
|
20 |
if url_input:
|
|
|
8 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
9 |
|
10 |
# Setting the page title
|
11 |
+
st.title("+ - Neutral./ News Sentiment Analysis")
|
12 |
|
13 |
# Input option: Text or URL
|
14 |
input_option = st.radio("Choose input type:", ["Text Input", "URL Input"])
|
15 |
|
16 |
if input_option == "Text Input":
|
17 |
+
text_input = st.text_area("Enter Financial News:", "DEMO : Cryptocurrency is mooning after record-breaking year.")
|
18 |
else:
|
19 |
url_input = st.text_input("Enter URL to scrape headline:")
|
20 |
if url_input:
|