Matthew2 commited on
Commit
554697f
·
1 Parent(s): 0d069be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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('Model.h5')
10
 
11
 
12
- def iris(Gender ,Hemoglobin, MCH, MCHC, MCV):
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=iris,
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)