Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,11 @@ from transformers import pipeline
|
|
4 |
model = pipeline("text-classification", model="/home/user/app/MendoBERT/", tokenizer="indolem/indobert-base-uncased")
|
5 |
basemodel = pipeline("text-classification", model="/home/user/app/IndoLEM/", tokenizer="indolem/indobert-base-uncased")
|
6 |
|
7 |
-
placeholder = st.empty()
|
8 |
-
|
9 |
if 'options' not in st.session_state:
|
10 |
st.session_state['options'] = ""
|
11 |
|
|
|
|
|
12 |
with placeholder:
|
13 |
text = st.text_area('Enter some text: ', key = 'options')
|
14 |
|
|
|
4 |
model = pipeline("text-classification", model="/home/user/app/MendoBERT/", tokenizer="indolem/indobert-base-uncased")
|
5 |
basemodel = pipeline("text-classification", model="/home/user/app/IndoLEM/", tokenizer="indolem/indobert-base-uncased")
|
6 |
|
|
|
|
|
7 |
if 'options' not in st.session_state:
|
8 |
st.session_state['options'] = ""
|
9 |
|
10 |
+
placeholder = st.empty()
|
11 |
+
|
12 |
with placeholder:
|
13 |
text = st.text_area('Enter some text: ', key = 'options')
|
14 |
|