Ahmed235 commited on
Commit
48b683f
·
verified ·
1 Parent(s): bac12ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ def predict_image(image):
31
 
32
  # Define the prediction result
33
  result = {
34
- "prediction": "Your Teeth are Good & You Don't Need To Visit Doctor" if probability_good > 0.5 else "Your Teeth are Bad & You Need To Visit Doctor"
35
  }
36
 
37
  return result
@@ -54,7 +54,7 @@ output_interface = "json"
54
  iface = gr.Interface(
55
  fn=predict_image,
56
  inputs=input_interface,
57
- outputs=gr.Textbox("output"))
58
 
59
  # Launch the interface
60
  iface.launch(share=True)
 
31
 
32
  # Define the prediction result
33
  result = {
34
+ "prediction": probability_good
35
  }
36
 
37
  return result
 
54
  iface = gr.Interface(
55
  fn=predict_image,
56
  inputs=input_interface,
57
+ outputs=output_interface)
58
 
59
  # Launch the interface
60
  iface.launch(share=True)