naughtondale commited on
Commit
d02dc6e
·
1 Parent(s): b21bc76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -46,12 +46,14 @@ def predict_risk(age, sex, bmi, children, smoker, region):
46
  iface = gr.Interface(fn=predict_risk,
47
  inputs=['number', 'text', 'number', 'number', 'text', 'text'],
48
  outputs='text',
49
- title='Insurance Customer Risk Prediction Model',
50
  theme=gr.themes.Monochrome(
51
  primary_hue="blue",
52
  secondary_hue="blue",
53
  neutral_hue="blue"
54
- ))
 
 
 
55
 
56
  # Run the interface
57
  iface.launch()
 
46
  iface = gr.Interface(fn=predict_risk,
47
  inputs=['number', 'text', 'number', 'number', 'text', 'text'],
48
  outputs='text',
 
49
  theme=gr.themes.Monochrome(
50
  primary_hue="blue",
51
  secondary_hue="blue",
52
  neutral_hue="blue"
53
+ ),
54
+ description="This is a model that allows an insurer to automatically predict whether the risk of insuring a customer is 'high', 'medium', or 'low' using a sophisticated machine learning technique. The insurer is not required to know ML linear regression algorithms to use this model. All they have to do is provide the following risk factors the model was trained on:<br>Age<br>Sex (female/male)<br>Body Mass Index (BMI)<br>Children (number)<br>Smoker (yes/no)<br>Region (Southwest/Northwest - adjust depending on the area served)<br>Expenses (annual expenses)",
55
+ examples=None,
56
+ title="Insurance Risk Predictor")
57
 
58
  # Run the interface
59
  iface.launch()