rachman commited on
Commit
7700352
·
verified ·
1 Parent(s): 67ef43f

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -83,7 +83,7 @@ if st.button('Analyze'):
83
  if user_input:
84
  # Preprocess the input text
85
  processed_text = text_preprocessing(user_input)
86
- data_inf = hub_layer(processed_text)
87
  prediction = model.predict(data_inf)
88
  sentiment = "Positive" if prediction[0] > 0.5 else "Negative"
89
 
 
83
  if user_input:
84
  # Preprocess the input text
85
  processed_text = text_preprocessing(user_input)
86
+ data_inf = hub_layer([processed_text])
87
  prediction = model.predict(data_inf)
88
  sentiment = "Positive" if prediction[0] > 0.5 else "Negative"
89