Spaces:
Sleeping
Sleeping
Commit
·
15ea834
1
Parent(s):
7d7a24e
Update app.py
Browse filesknn model file
app.py
CHANGED
|
@@ -13,7 +13,7 @@ from sklearn.feature_extraction.text import CountVectorizer
|
|
| 13 |
import joblib
|
| 14 |
|
| 15 |
# Load the saved model
|
| 16 |
-
model_file = "
|
| 17 |
loaded_model = load(model_file)
|
| 18 |
|
| 19 |
def predict_drug(text_input):
|
|
@@ -24,7 +24,7 @@ def predict_drug(text_input):
|
|
| 24 |
drug_dosage = prediction[1]
|
| 25 |
#drug_side_effects = prediction[3]
|
| 26 |
|
| 27 |
-
output_text = f"USES:\n {drug_uses} \n\nDOSAGE:\n {drug_dosage} \n"
|
| 28 |
return output_text
|
| 29 |
|
| 30 |
# Create the interface
|
|
|
|
| 13 |
import joblib
|
| 14 |
|
| 15 |
# Load the saved model
|
| 16 |
+
model_file = "drug_finder_big_knn.joblib"
|
| 17 |
loaded_model = load(model_file)
|
| 18 |
|
| 19 |
def predict_drug(text_input):
|
|
|
|
| 24 |
drug_dosage = prediction[1]
|
| 25 |
#drug_side_effects = prediction[3]
|
| 26 |
|
| 27 |
+
output_text = f"USES:\n\n {drug_uses} \n\nDOSAGE:\n\n {drug_dosage} \n"
|
| 28 |
return output_text
|
| 29 |
|
| 30 |
# Create the interface
|