saritha5 commited on
Commit
ad67ce6
1 Parent(s): 1d56a59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -36,19 +36,19 @@ def classify_compliant(text):
36
  ranking = ranking[::-1]
37
 
38
  for i in range(len(scores)):
39
- l = config.id2label[ranking[i]]
40
- s = scores[ranking[i]]
41
- probs[l] = np.round(float(s), 4)
42
- return probs
43
 
44
 
45
  #build the Gradio app
46
  #Instructuction = "Write an imaginary review about a product or service you might be interested in."
47
- title="Text Sentiment Analysis"
48
- description = """Write a Good or Bad review about an imaginary product or service,\
49
- see how the machine learning model is able to predict your sentiments"""
50
  article = """
51
- - Click submit button to test sentiment analysis prediction
52
  - Click clear button to refresh text
53
  """
54
 
 
36
  ranking = ranking[::-1]
37
 
38
  for i in range(len(scores)):
39
+ l = config.id2label[ranking[0]]
40
+ #s = scores[ranking[i]]
41
+ #probs[l] = np.round(float(s), 4)
42
+ return l
43
 
44
 
45
  #build the Gradio app
46
  #Instructuction = "Write an imaginary review about a product or service you might be interested in."
47
+ title="Consumer Complaint Segmentation"
48
+ description = """Write a complaint insurance product or service,\
49
+ see how the machine learning model is able to predict your Complaint type"""
50
  article = """
51
+ - Click submit button to test Consumer Complaint Segmentation
52
  - Click clear button to refresh text
53
  """
54