Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
import torch
|
3 |
|
4 |
-
@st.cache
|
5 |
def Model():
|
6 |
from transformers import DebertaTokenizer, DebertaForSequenceClassification
|
7 |
tokenizer = DebertaTokenizer.from_pretrained("microsoft/deberta-base")
|
|
|
1 |
import streamlit as st
|
2 |
import torch
|
3 |
|
4 |
+
@st.cache(allow_output_mutation=True)
|
5 |
def Model():
|
6 |
from transformers import DebertaTokenizer, DebertaForSequenceClassification
|
7 |
tokenizer = DebertaTokenizer.from_pretrained("microsoft/deberta-base")
|