Zakia commited on
Commit
36ce2c2
1 Parent(s): a3be3a6

clean code

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -47,7 +47,10 @@ iface = gr.Interface(
47
  title=title,
48
  description=description,
49
  article=article,
50
- inputs=[gr.inputs.Slider(minimum=0,maximum=100, step=1, default=0, label="Age"), gr.inputs.Dropdown(["Female", "Male"], default="Female", label="Gender"), gr.inputs.Dropdown(["Asian", "Black", "Coloured", "White", "Other"], default="Asian", label="Race"), gr.inputs.Dropdown(["1", "2"], default="1", label="Diabetes Type")],
 
 
 
51
  outputs="text",
52
  theme="huggingface",
53
  examples=[
@@ -63,4 +66,5 @@ iface = gr.Interface(
63
 
64
  iface.test_launch()
65
  if __name__ == "__main__":
66
- iface.launch()
 
 
47
  title=title,
48
  description=description,
49
  article=article,
50
+ inputs=[gr.inputs.Slider(minimum=0,maximum=100, step=1, default=0, label="Age"),
51
+ gr.inputs.Dropdown(["Female", "Male"], default="Female", label="Gender"),
52
+ gr.inputs.Dropdown(["Asian", "Black", "Coloured", "White", "Other"], default="Asian", label="Race"),
53
+ gr.inputs.Dropdown(["1", "2"], default="1", label="Diabetes Type")],
54
  outputs="text",
55
  theme="huggingface",
56
  examples=[
 
66
 
67
  iface.test_launch()
68
  if __name__ == "__main__":
69
+ iface.launch()
70
+