OmarEllethy commited on
Commit
08bebe6
·
verified ·
1 Parent(s): 06e84a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -45,16 +45,16 @@ def predict_teeth_health(image):
45
 
46
  # Return the predicted class name
47
  if probability_good > 0.5:
48
- return "Predicted: Your Teeth are Good...<br>And You Don't Need To Visit Doctor"
49
  else:
50
- return "Predicted: Your Teeth are Bad...<br>And You Need To Visit Doctor"
51
 
52
  # Define the Gradio interface
53
  iface = gr.Interface(
54
  fn=predict_teeth_health,
55
  inputs=gr.Image(type="pil"),
56
  outputs="text",
57
- title="<h1 style='color: lightgreen; text-align: center;'>Dentella</h1><p style='text-align: center; color: skyblue; font-size: 40px;'>Please Enter Your Teeth Here...</p>",
58
  )
59
 
60
 
 
45
 
46
  # Return the predicted class name
47
  if probability_good > 0.5:
48
+ return "Predicted: Your Teeth are Good & You Don't Need To Visit Doctor"
49
  else:
50
+ return "Predicted: Your Teeth are Bad & You Need To Visit Doctor"
51
 
52
  # Define the Gradio interface
53
  iface = gr.Interface(
54
  fn=predict_teeth_health,
55
  inputs=gr.Image(type="pil"),
56
  outputs="text",
57
+ title="<h1 style='color: lightgreen; text-align: center;'>Dentella</h1><p style='text-align: center; color: skyblue; font-size: 30px;'>Please Enter Your Teeth Here...</p>",
58
  )
59
 
60