Fredaaaaaa commited on
Commit
20f3163
·
verified ·
1 Parent(s): 0a80eb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -123,12 +123,12 @@ def predict_interaction(drug_names):
123
  """Predict interaction between two drugs using your labeled dataset"""
124
  try:
125
  if not drug_names or ',' not in drug_names:
126
- return "Enter two drug names separated by comma"
127
 
128
  # Split the input
129
  drugs = [drug.strip() for drug in drug_names.split(',')]
130
  if len(drugs) != 2:
131
- return "Enter exactly two drug names separated by comma"
132
 
133
  drug1, drug2 = drugs[0].lower(), drugs[1].lower()
134
  print(f"Looking up: '{drug1}' + '{drug2}'")
 
123
  """Predict interaction between two drugs using your labeled dataset"""
124
  try:
125
  if not drug_names or ',' not in drug_names:
126
+ return "Enter drug names"
127
 
128
  # Split the input
129
  drugs = [drug.strip() for drug in drug_names.split(',')]
130
  if len(drugs) != 2:
131
+ return "Enter drug names "
132
 
133
  drug1, drug2 = drugs[0].lower(), drugs[1].lower()
134
  print(f"Looking up: '{drug1}' + '{drug2}'")