Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from datasets import load_dataset
|
3 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoModel, Trainer, TrainingArguments, LineByLineTextDataset
|
4 |
-
import json
|
5 |
|
6 |
|
7 |
@st.cache()
|
@@ -44,7 +44,7 @@ text = st.markdown("Try typing something here! \n You will see how much better o
|
|
44 |
|
45 |
with st.form(key='input_form'):
|
46 |
to_analyze = st.text_input(label='Input text to be analyzed')
|
47 |
-
button = st.form_submit_button(label='
|
48 |
if button:
|
49 |
if to_analyze:
|
50 |
pred = make_prediction(to_analyze)
|
|
|
1 |
import streamlit as st
|
2 |
from datasets import load_dataset
|
3 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoModel, Trainer, TrainingArguments, LineByLineTextDataset
|
4 |
+
# import json
|
5 |
|
6 |
|
7 |
@st.cache()
|
|
|
44 |
|
45 |
with st.form(key='input_form'):
|
46 |
to_analyze = st.text_input(label='Input text to be analyzed')
|
47 |
+
button = st.form_submit_button(label='Analyze')
|
48 |
if button:
|
49 |
if to_analyze:
|
50 |
pred = make_prediction(to_analyze)
|