Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,11 @@ from transformers import BertTokenizer, BertForSequenceClassification
|
|
| 6 |
import torch
|
| 7 |
import matplotlib.pyplot as plt
|
| 8 |
import numpy as np
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Load the model and tokenizer
|
| 11 |
@st.cache(allow_output_mutation=True)
|
|
|
|
| 6 |
import torch
|
| 7 |
import matplotlib.pyplot as plt
|
| 8 |
import numpy as np
|
| 9 |
+
from PIL import Image
|
| 10 |
+
|
| 11 |
+
# Load and display the WEBP image
|
| 12 |
+
image = Image.open("logo.webp") # Replace 'logo.webp' with your actual WEBP file path
|
| 13 |
+
st.image(image, caption="Sentiment Analysis App", use_column_width=True)
|
| 14 |
|
| 15 |
# Load the model and tokenizer
|
| 16 |
@st.cache(allow_output_mutation=True)
|