Sambhavnoobcoder commited on
Commit
55b2077
·
1 Parent(s): 7dacc37

updated description

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ stemmer = WordNetLemmatizer()
12
  from keras.preprocessing.text import Tokenizer
13
  from keras import backend as K
14
 
15
- #Завантажуємо наші моделі
16
 
17
  def recall(y_true, y_pred):
18
  true_positives = K.sum(K.round(K.clip(y_true * y_pred, 0, 1)))
@@ -56,6 +56,6 @@ def get_sentiment(text):
56
  x = model.predict(text).tolist()[0][0]
57
  return x
58
 
59
- interface = gr.Interface(fn = get_sentiment, inputs = 'text', outputs = 'text', title = 'Kotsko Kyrylo IPS-42 Sentiment140', description = 'Kotsko Kyrylo IPS-42 Sentiment140')
60
 
61
  interface.launch(share=False)
 
12
  from keras.preprocessing.text import Tokenizer
13
  from keras import backend as K
14
 
15
+ #defining some variables and test parametrics
16
 
17
  def recall(y_true, y_pred):
18
  true_positives = K.sum(K.round(K.clip(y_true * y_pred, 0, 1)))
 
56
  x = model.predict(text).tolist()[0][0]
57
  return x
58
 
59
+ interface = gr.Interface(fn = get_sentiment, inputs = 'text', outputs = 'text', title = 'Sentiment Analysis', description = 'uses a custom designed model for sentiment analysis.')
60
 
61
  interface.launch(share=False)