Update app.py
Browse filesupdate class names
app.py
CHANGED
|
@@ -11,16 +11,17 @@ model = tf.keras.models.load_model("prescription_classification_model.keras")
|
|
| 11 |
|
| 12 |
# Define the 78 drug names in the exact order corresponding to your model's output classes
|
| 13 |
CLASS_NAMES = [
|
| 14 |
-
"
|
| 15 |
-
"
|
| 16 |
-
"
|
| 17 |
-
"
|
| 18 |
-
"
|
| 19 |
-
"
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"
|
|
|
|
| 24 |
]
|
| 25 |
|
| 26 |
def decode_prediction(prediction):
|
|
|
|
| 11 |
|
| 12 |
# Define the 78 drug names in the exact order corresponding to your model's output classes
|
| 13 |
CLASS_NAMES = [
|
| 14 |
+
"Aceta", "Ace", "Alatrol", "Amodis", "Atrizin", "Axodin", "Azithrocin", "Azyth",
|
| 15 |
+
"Az", "Bacaid", "Backtone", "Baclofen", "Baclon", "Bacmax", "Beklo", "Bicozin",
|
| 16 |
+
"Canazole", "Candinil", "Cetisoft", "Conaz", "Dancel", "Denixil", "Diflu",
|
| 17 |
+
"Dinafex", "Disopan", "Esonix", "Esoral", "Etizin", "Exium", "Fenadin",
|
| 18 |
+
"Fexofast", "Fexo", "Filmet", "Fixal", "Flamyd", "Flexibac", "Flexilax",
|
| 19 |
+
"Flugal", "Ketocon", "Ketoral", "Ketotab", "Ketozol", "Leptic", "Lucan-R",
|
| 20 |
+
"Lumona", "M-Kast", "Maxima", "Maxpro", "Metro", "Metsina", "Monas",
|
| 21 |
+
"Montair", "Montene", "Montex", "Napa Extend", "Napa", "Nexcap", "Nexum",
|
| 22 |
+
"Nidazyl", "Nizoder", "Odmon", "Omastin", "Opton", "Progut", "Provair",
|
| 23 |
+
"Renova", "Rhinil", "Ritch", "Rivotril", "Romycin", "Rozith", "Sergel",
|
| 24 |
+
"Tamen", "Telfast", "Tridosil", "Trilock", "Vifas", "Zithrin"
|
| 25 |
]
|
| 26 |
|
| 27 |
def decode_prediction(prediction):
|