Jfink09 commited on
Commit
4d640f6
·
verified ·
1 Parent(s): ed8a361

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
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
- css = """
71
- <style>
72
- :root {
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", css=css).launch(share=True)
 
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)