gefedya commited on
Commit
13d8cd8
1 Parent(s): 7d2a7e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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='Classify')
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)