Update app.py
Browse files
app.py
CHANGED
@@ -67,6 +67,12 @@ def predict(pre_op_sphere, pre_op_cylinder, pre_op_axis):
|
|
67 |
|
68 |
return f"Predicted Laser Prescription:\nSphere: {predicted_sphere:.2f}\nCylinder: {predicted_cylinder:.2f}\nAxis: {predicted_axis:.2f}"
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
inputs = [
|
71 |
gr.Number(label="Pre-Op Sphere"),
|
72 |
gr.Number(label="Pre-Op Cylinder"),
|
@@ -74,4 +80,4 @@ inputs = [
|
|
74 |
]
|
75 |
output = gr.Textbox(label="Predicted Laser Prescription")
|
76 |
|
77 |
-
gr.Interface(fn=predict, inputs=inputs, outputs=output, title="Laser Prescription Prediction").launch()
|
|
|
67 |
|
68 |
return f"Predicted Laser Prescription:\nSphere: {predicted_sphere:.2f}\nCylinder: {predicted_cylinder:.2f}\nAxis: {predicted_axis:.2f}"
|
69 |
|
70 |
+
css = """
|
71 |
+
body {
|
72 |
+
background-color: #131517;
|
73 |
+
}
|
74 |
+
"""
|
75 |
+
|
76 |
inputs = [
|
77 |
gr.Number(label="Pre-Op Sphere"),
|
78 |
gr.Number(label="Pre-Op Cylinder"),
|
|
|
80 |
]
|
81 |
output = gr.Textbox(label="Predicted Laser Prescription")
|
82 |
|
83 |
+
gr.Interface(fn=predict, inputs=inputs, outputs=output, title="Laser Prescription Prediction", css=css).launch()
|