Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
import pandas as pd
|
3 |
import streamlit as st
|
4 |
-
|
5 |
from streamlit import components
|
6 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
7 |
from transformers_interpret import SequenceClassificationExplainer
|
@@ -17,8 +17,10 @@ def load_model(model_name):
|
|
17 |
|
18 |
st.title("Transformers Interpet Demo App")
|
19 |
|
|
|
|
|
20 |
st.sidebar.markdown(
|
21 |
-
|
22 |
)
|
23 |
|
24 |
# uncomment the options below to test out the app with a variety of classification models.
|
|
|
1 |
import os
|
2 |
import pandas as pd
|
3 |
import streamlit as st
|
4 |
+
from PIL import Image
|
5 |
from streamlit import components
|
6 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
7 |
from transformers_interpret import SequenceClassificationExplainer
|
|
|
17 |
|
18 |
st.title("Transformers Interpet Demo App")
|
19 |
|
20 |
+
image = Image.open("./images/tight@1920x_transparent.png")
|
21 |
+
st.sidebar.image(image, use_column_width=True)
|
22 |
st.sidebar.markdown(
|
23 |
+
"Check out the package on [Github](https://github.com/cdpierse/transformers-interpret)"
|
24 |
)
|
25 |
|
26 |
# uncomment the options below to test out the app with a variety of classification models.
|