Jfink09 commited on
Commit
e076636
·
verified ·
1 Parent(s): 701c8cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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()