Update app.py
Browse files
app.py
CHANGED
@@ -67,13 +67,9 @@ 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 |
-
|
71 |
-
|
72 |
-
|
73 |
-
--bg-dark: #131517;
|
74 |
-
}
|
75 |
-
</style>
|
76 |
-
"""
|
77 |
|
78 |
inputs = [
|
79 |
gr.Number(label="Pre-Op Sphere"),
|
@@ -82,4 +78,4 @@ inputs = [
|
|
82 |
]
|
83 |
output = gr.Textbox(label="Predicted Laser Prescription")
|
84 |
|
85 |
-
gr.Interface(fn=predict, inputs=inputs, outputs=output, title="Laser Prescription Prediction",
|
|
|
67 |
|
68 |
return f"Predicted Laser Prescription:\nSphere: {predicted_sphere:.2f}\nCylinder: {predicted_cylinder:.2f}\nAxis: {predicted_axis:.2f}"
|
69 |
|
70 |
+
custom_theme = gr.themes.Default(
|
71 |
+
body_background_fill="#000000", # Set the desired background color here
|
72 |
+
)
|
|
|
|
|
|
|
|
|
73 |
|
74 |
inputs = [
|
75 |
gr.Number(label="Pre-Op Sphere"),
|
|
|
78 |
]
|
79 |
output = gr.Textbox(label="Predicted Laser Prescription")
|
80 |
|
81 |
+
gr.Interface(fn=predict, inputs=inputs, outputs=output, title="Laser Prescription Prediction", theme=custom_theme).launch(share=True)
|