Jfink09 commited on
Commit
ed6950c
·
verified ·
1 Parent(s): 637b88e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -67,9 +67,11 @@ 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
- custom_theme = gr.themes.Default(
71
- body_background_fill="#131517", # Set the desired background color here
72
- )
 
 
73
 
74
  inputs = [
75
  gr.Number(label="Pre-Op Sphere"),
@@ -78,4 +80,4 @@ inputs = [
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)
 
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 !important;
73
+ }
74
+ """
75
 
76
  inputs = [
77
  gr.Number(label="Pre-Op Sphere"),
 
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(share=True)