Jfink09 commited on
Commit
7bf4a3a
·
verified ·
1 Parent(s): eefcc06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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.inputs.Number(label="Pre-Op Sphere"),
41
- gr.inputs.Number(label="Pre-Op Cylinder"),
42
- gr.inputs.Number(label="Pre-Op Axis"),
43
- gr.inputs.Number(label="3-Month Sphere"),
44
- gr.inputs.Number(label="3-Month Cylinder"),
45
- gr.inputs.Number(label="3-Month Axis")
46
  ]
47
- output = gr.outputs.Textbox(label="Predicted Laser Prescription")
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()