Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 49 |
else:
|
| 50 |
-
return "Predicted: Your Teeth are Bad
|
| 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:
|
| 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 |
|