Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,10 +6,10 @@ from tensorflow import keras
|
|
| 6 |
|
| 7 |
#loading the saved model
|
| 8 |
from keras.models import load_model
|
| 9 |
-
model = load_model('
|
| 10 |
|
| 11 |
|
| 12 |
-
def
|
| 13 |
prediction = model_rfc.predict([[Gender ,Hemoglobin, MCH, MCHC, MCV]])
|
| 14 |
if (prediction[0] ==0):
|
| 15 |
return "Positive"
|
|
@@ -34,6 +34,6 @@ input5 = gr.inputs.Number(label="Mean Corpusular Volume (MCV)")
|
|
| 34 |
output = gr.outputs.Textbox(label= "RESULT")
|
| 35 |
|
| 36 |
#create interface
|
| 37 |
-
gui = gr.Interface(fn=
|
| 38 |
inputs=[input1, input2, input3, input4, input5],
|
| 39 |
outputs=output).launch(debug=True)
|
|
|
|
| 6 |
|
| 7 |
#loading the saved model
|
| 8 |
from keras.models import load_model
|
| 9 |
+
model = load_model('model.h5')
|
| 10 |
|
| 11 |
|
| 12 |
+
def ana(Gender ,Hemoglobin, MCH, MCHC, MCV):
|
| 13 |
prediction = model_rfc.predict([[Gender ,Hemoglobin, MCH, MCHC, MCV]])
|
| 14 |
if (prediction[0] ==0):
|
| 15 |
return "Positive"
|
|
|
|
| 34 |
output = gr.outputs.Textbox(label= "RESULT")
|
| 35 |
|
| 36 |
#create interface
|
| 37 |
+
gui = gr.Interface(fn=ana,
|
| 38 |
inputs=[input1, input2, input3, input4, input5],
|
| 39 |
outputs=output).launch(debug=True)
|