Update app.py
Browse files
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[
|
| 40 |
-
s = scores[ranking[i]]
|
| 41 |
-
probs[l] = np.round(float(s), 4)
|
| 42 |
-
return
|
| 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="
|
| 48 |
-
description = """Write a
|
| 49 |
-
see how the machine learning model is able to predict your
|
| 50 |
article = """
|
| 51 |
-
- Click submit button to test
|
| 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 |
|