karthick0812 commited on
Commit
f87dde4
1 Parent(s): b3948e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -6,8 +6,9 @@ classifier = pipeline(task="text-classification", model="SamLowe/roberta-base-go
6
 
7
  sentences = st.text_input('Enter Your Sentences')
8
 
9
- model_outputs = classifier(sentences)
10
 
11
- if sentences:
 
12
  st.write(model_outputs[0])
13
  # produces a list of dicts for each of the labels
 
6
 
7
  sentences = st.text_input('Enter Your Sentences')
8
 
9
+ button = st.button('Submit')
10
 
11
+ if button :
12
+ model_outputs = classifier(sentences)
13
  st.write(model_outputs[0])
14
  # produces a list of dicts for each of the labels