Fredaaaaaa commited on
Commit
a0aa16d
·
verified ·
1 Parent(s): b31e718

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -16
app.py CHANGED
@@ -63,10 +63,7 @@ DRUG_ACTIVE_COMPOUNDS = {
63
  }
64
 
65
  def extract_active_compound(drug_name):
66
- """
67
- Extract active compound from traditional drug name using mapping or PubChem
68
- This function works in the background - user doesn't see this process
69
- """
70
  drug_lower = drug_name.lower().strip()
71
 
72
  # First check our predefined mapping
@@ -397,18 +394,7 @@ with gr.Blocks(title="Drug Interaction Predictor") as demo:
397
 
398
  predict_btn.click(fn=lambda x: predict_interaction(x, dataset_db, fallback_db), inputs=drug_input, outputs=output)
399
 
400
- # Add examples
401
- gr.Examples(
402
- examples=[
403
- ["Warfarin, Aspirin"],
404
- ["St John's Wort, Morphine"],
405
- ["Yohimbe, Khat"],
406
- ["Cannabis, Valerian"],
407
- ["Turmeric, Ginger"],
408
- ["Kava, Ashwagandha"]
409
- ],
410
- inputs=drug_input
411
- )
412
 
413
  if __name__ == "__main__":
414
  demo.launch()
 
63
  }
64
 
65
  def extract_active_compound(drug_name):
66
+
 
 
 
67
  drug_lower = drug_name.lower().strip()
68
 
69
  # First check our predefined mapping
 
394
 
395
  predict_btn.click(fn=lambda x: predict_interaction(x, dataset_db, fallback_db), inputs=drug_input, outputs=output)
396
 
397
+
 
 
 
 
 
 
 
 
 
 
 
398
 
399
  if __name__ == "__main__":
400
  demo.launch()