Jaffermirza17 commited on
Commit
a97923d
·
1 Parent(s): 23e2686

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,7 +53,7 @@ with gr.Blocks(title=title) as demo:
53
  cp = gr.Radio([0,1,2,3,4,5], label="Chest Pain", info="Rate the severity of your chest pain [0: none, 5: ER RIGHT NOW]:")
54
  trtbps = gr.Number(label="Resting Blood Pressure", info = "What is your resting blood pressure?", minimum=1, maximum=200, value=4)
55
  chol = gr.Slider(label="Cholesterol", info="What is your Cholesterol level?", minimum=1, maximum=570, value=4, step=1)
56
- fbs = gr.Radio(["Yes", "No"], label="Blood Sugar", info="Do you have high blood sugar?", type="index")
57
 
58
  restecg = gr.Slider(label="restecg Score", minimum=1, maximum=5, value=4, step=1)
59
  thalachh = gr.Slider(label="thalachh Score", minimum=1, maximum=205, value=4, step=1)
@@ -77,7 +77,7 @@ with gr.Blocks(title=title) as demo:
77
  )
78
 
79
  gr.Markdown("### Click on any of the examples below to see how it works:")
80
- gr.Examples([[24,"Male",4,4,5,"Yes",4,4,5,5,1,2,3], [24,"Male",4,4,"Yes",3,3,2,1,1,1,2,3]], [age, sex, cp, trtbps, chol, fbs, restecg, thalachh,exng,oldpeak,slp,caa,thall], [label,local_plot], main_func, cache_examples=True)
81
 
82
 
83
  demo.launch()
 
53
  cp = gr.Radio([0,1,2,3,4,5], label="Chest Pain", info="Rate the severity of your chest pain [0: none, 5: ER RIGHT NOW]:")
54
  trtbps = gr.Number(label="Resting Blood Pressure", info = "What is your resting blood pressure?", minimum=1, maximum=200, value=4)
55
  chol = gr.Slider(label="Cholesterol", info="What is your Cholesterol level?", minimum=1, maximum=570, value=4, step=1)
56
+ fbs = gr.Radio([1, 2, 3, 4, 5], label="Blood Sugar", info="Do you have high blood sugar? [1: Low, 5: Very High]")
57
 
58
  restecg = gr.Slider(label="restecg Score", minimum=1, maximum=5, value=4, step=1)
59
  thalachh = gr.Slider(label="thalachh Score", minimum=1, maximum=205, value=4, step=1)
 
77
  )
78
 
79
  gr.Markdown("### Click on any of the examples below to see how it works:")
80
+ gr.Examples([[24,"Male",4,4,5, 5,4,4,5,5,1,2,3], [24,"Male",4,4,5,3,3,2,1,1,1,2,3]], [age, sex, cp, trtbps, chol, fbs, restecg, thalachh,exng,oldpeak,slp,caa,thall], [label,local_plot], main_func, cache_examples=True)
81
 
82
 
83
  demo.launch()