Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
import asyncio
|
2 |
-
import gc
|
3 |
-
import logging
|
4 |
import os
|
5 |
|
6 |
import pandas as pd
|
7 |
-
import psutil
|
8 |
import streamlit as st
|
9 |
-
from PIL import Image
|
10 |
from streamlit import components
|
11 |
#from streamlit.caching import clear_cache
|
12 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
@@ -34,16 +34,6 @@ print ("before main")
|
|
34 |
|
35 |
|
36 |
st.title("Transformers Interpet Demo App")
|
37 |
-
print ("before main")
|
38 |
-
|
39 |
-
#image = Image.open("./images/tight@1920x_transparent.png")
|
40 |
-
#st.sidebar.image(image, use_column_width=True)
|
41 |
-
st.sidebar.markdown(
|
42 |
-
"Check out the package on [Github](https://github.com/cdpierse/transformers-interpret)"
|
43 |
-
)
|
44 |
-
st.info(
|
45 |
-
"Due to limited resources only low memory models are available. Run this [app locally](https://github.com/cdpierse/transformers-interpret-streamlit) to run the full selection of available models. "
|
46 |
-
)
|
47 |
|
48 |
|
49 |
|
|
|
1 |
+
#import asyncio
|
2 |
+
#import gc
|
3 |
+
#import logging
|
4 |
import os
|
5 |
|
6 |
import pandas as pd
|
7 |
+
#import psutil
|
8 |
import streamlit as st
|
9 |
+
#from PIL import Image
|
10 |
from streamlit import components
|
11 |
#from streamlit.caching import clear_cache
|
12 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
|
|
34 |
|
35 |
|
36 |
st.title("Transformers Interpet Demo App")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
|
39 |
|