ashishabraham22 commited on
Commit
29c72d8
1 Parent(s): 1a9571b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,11 +13,11 @@ def classify(text):
13
  prediction = model.predict(np.array(X))
14
  # return prediction
15
  if(prediction<=0.4):
16
- return "Sounds Positive. Giving a good impression to start reading this stuff. "
17
  elif(prediction>0.4 and prediction<=0.6):
18
  return "Sounds Neutral. Speaks generally and not biased towards any value."
19
  else :
20
- return "Looks like you are reading negative content. Some words sound negative in context."
21
 
22
 
23
  iface= gr.Interface(
 
13
  prediction = model.predict(np.array(X))
14
  # return prediction
15
  if(prediction<=0.4):
16
+ return "Looks like you are reading negative content. Some words sound negative in context."
17
  elif(prediction>0.4 and prediction<=0.6):
18
  return "Sounds Neutral. Speaks generally and not biased towards any value."
19
  else :
20
+ return "Sounds Positive. Giving a good impression to start reading this stuff. "
21
 
22
 
23
  iface= gr.Interface(