m0hh commited on
Commit
0e81f14
1 Parent(s): 5e50726

corrected drugs

Browse files
Files changed (1) hide show
  1. app.py +5 -45
app.py CHANGED
@@ -3,6 +3,9 @@ import gradio as gr
3
  # List of correct and incorrect drugs
4
  # Corresponding to T45.2X1
5
  correct_drugs = [
 
 
 
6
  "Afrezza",
7
  "Fiasp",
8
  "Apidra",
@@ -27,48 +30,7 @@ correct_drugs = [
27
  "Janumet"
28
  ]
29
 
30
- incorrect_drugs = [
31
- "ABOB",
32
- "Abrine",
33
- "Abrus (seed)",
34
- "Absinthe beverage",
35
- "Acaricide",
36
- "Acebutolol",
37
- "Acecarbromal",
38
- "Aceclidine",
39
- "Acedapsone",
40
- "Acefylline piperazine",
41
- "Acemorphan",
42
- "Acenocoumarin",
43
- "Acenocoumarol",
44
- "Acepifylline",
45
- "Acepromazine",
46
- "Acesulfamethoxypyridazine",
47
- "Acetal",
48
- "Acetaminophen",
49
- "Acetaminosalol",
50
- "Acetanilide",
51
- "Acetarsol",
52
- "Acetazolamide",
53
- "Acetiamine",
54
- "Acetohexamide",
55
- "Acetomenaphthone",
56
- "Acetomorphine",
57
- "Acetone (oils)",
58
- "Acetonitrile",
59
- "Acetophenazine",
60
- "Acetophenetedin",
61
- "Acetophenone",
62
- "Acetorphine",
63
- "Acetosulfone (sodium)",
64
- "Acetrizoate (sodium)",
65
- "Acetrizoic acid",
66
- "Acetyl bromide",
67
- "Acetyl chloride",
68
- "Acetylcarbromal",
69
- "Acetylcholine chloride",
70
- "Acetylcysteine",
71
- ]
72
 
73
  # Function to check if the selected drug is correct or incorrect
74
  def check_drug(drug_list1,drug_list2,drug_list3,drug_list4,drug_list5):
@@ -77,9 +39,7 @@ def check_drug(drug_list1,drug_list2,drug_list3,drug_list4,drug_list5):
77
  incorrect = []
78
 
79
  for drug in drug_list:
80
- if drug in correct_drugs:
81
- correct.append(drug)
82
- elif drug in incorrect_drugs:
83
  incorrect.append(drug)
84
 
85
  if len(incorrect) > 0:
 
3
  # List of correct and incorrect drugs
4
  # Corresponding to T45.2X1
5
  correct_drugs = [
6
+ "Glucotrol",
7
+ "Glucophage",
8
+ "Avandia",
9
  "Afrezza",
10
  "Fiasp",
11
  "Apidra",
 
30
  "Janumet"
31
  ]
32
 
33
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  # Function to check if the selected drug is correct or incorrect
36
  def check_drug(drug_list1,drug_list2,drug_list3,drug_list4,drug_list5):
 
39
  incorrect = []
40
 
41
  for drug in drug_list:
42
+ if drug not in correct_drugs:
 
 
43
  incorrect.append(drug)
44
 
45
  if len(incorrect) > 0: