Altered my project file
Browse files
app.py
CHANGED
|
@@ -4,8 +4,7 @@ import torch
|
|
| 4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 5 |
|
| 6 |
# Load the model and tokenizer
|
| 7 |
-
|
| 8 |
-
# model = AutoModelForSequenceClassification.from_pretrained("ikoghoemmanuell/finetuned_sentiment_modell")
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained("Justin-J/finetuned_sentiment_modell")
|
| 10 |
model = AutoModelForSequenceClassification.from_pretrained("Justin-J/finetuned_sentiment_modell")
|
| 11 |
|
|
@@ -38,7 +37,9 @@ Enter some text and we'll tell you if it has a positive, negative, or neutral se
|
|
| 38 |
|
| 39 |
|
| 40 |
# Add image
|
| 41 |
-
image = st.image("https://user-images.githubusercontent.com/115732734/271723351-3677394d-1cd3-4df8-8bec-616fa6bd3b2c.png", width=
|
|
|
|
|
|
|
| 42 |
|
| 43 |
# Get user input
|
| 44 |
text = st.text_input("Enter some text here:")
|
|
|
|
| 4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 5 |
|
| 6 |
# Load the model and tokenizer
|
| 7 |
+
|
|
|
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained("Justin-J/finetuned_sentiment_modell")
|
| 9 |
model = AutoModelForSequenceClassification.from_pretrained("Justin-J/finetuned_sentiment_modell")
|
| 10 |
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
# Add image
|
| 40 |
+
image = st.image("https://user-images.githubusercontent.com/115732734/271723351-3677394d-1cd3-4df8-8bec-616fa6bd3b2c.png", width=550)
|
| 41 |
+
image = st.image("https://user-images.githubusercontent.com/115732734/271723332-6c824e95-5e2f-48ec-af1c-b66ac7db1d7a.jpeg", width=550)
|
| 42 |
+
image = st.image("https://user-images.githubusercontent.com/115732734/271723345-50f27ca9-94ee-4e7c-ad3b-2b10f27d31bb.jpeg", width=550)
|
| 43 |
|
| 44 |
# Get user input
|
| 45 |
text = st.text_input("Enter some text here:")
|