Update app.py
Browse files
app.py
CHANGED
@@ -37,13 +37,13 @@ def predict(pre_op_sphere, pre_op_cylinder, pre_op_axis, three_month_sphere, thr
|
|
37 |
return f"Predicted Laser Prescription:\nSphere: {predicted_sphere:.2f}\nCylinder: {predicted_cylinder:.2f}\nAxis: {predicted_axis:.2f}"
|
38 |
|
39 |
inputs = [
|
40 |
-
gr.
|
41 |
-
gr.
|
42 |
-
gr.
|
43 |
-
gr.
|
44 |
-
gr.
|
45 |
-
gr.
|
46 |
]
|
47 |
-
output = gr.
|
48 |
|
49 |
gr.Interface(fn=predict, inputs=inputs, outputs=output, title="Laser Prescription Prediction").launch()
|
|
|
37 |
return f"Predicted Laser Prescription:\nSphere: {predicted_sphere:.2f}\nCylinder: {predicted_cylinder:.2f}\nAxis: {predicted_axis:.2f}"
|
38 |
|
39 |
inputs = [
|
40 |
+
gr.Number(label="Pre-Op Sphere"),
|
41 |
+
gr.Number(label="Pre-Op Cylinder"),
|
42 |
+
gr.Number(label="Pre-Op Axis"),
|
43 |
+
gr.Number(label="3-Month Sphere"),
|
44 |
+
gr.Number(label="3-Month Cylinder"),
|
45 |
+
gr.Number(label="3-Month Axis")
|
46 |
]
|
47 |
+
output = gr.Textbox(label="Predicted Laser Prescription")
|
48 |
|
49 |
gr.Interface(fn=predict, inputs=inputs, outputs=output, title="Laser Prescription Prediction").launch()
|