add examples
Browse files
app.py
CHANGED
@@ -20,7 +20,15 @@ iface = gr.Interface(
|
|
20 |
description=description,
|
21 |
inputs=[gr.inputs.Number(default=None), gr.inputs.Dropdown(["Female", "Male"], default="Male"), gr.inputs.Dropdown(["Asian", "Black", "Coloured", "White", "Other"], default="Asian"), gr.inputs.Dropdown(["1", "2"], default="1")],
|
22 |
outputs="text",
|
23 |
-
theme="darkdefault"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
if __name__ == "__main__":
|
26 |
iface.launch()
|
|
|
20 |
description=description,
|
21 |
inputs=[gr.inputs.Number(default=None), gr.inputs.Dropdown(["Female", "Male"], default="Male"), gr.inputs.Dropdown(["Asian", "Black", "Coloured", "White", "Other"], default="Asian"), gr.inputs.Dropdown(["1", "2"], default="1")],
|
22 |
outputs="text",
|
23 |
+
theme="darkdefault",
|
24 |
+
examples=[
|
25 |
+
[50, "Male", "Black", 2],
|
26 |
+
[76, "Female", "Asian", 2],
|
27 |
+
[12, "Female", "White", 1],
|
28 |
+
[30, "Male", "Coloured", 1],
|
29 |
+
[65, "Female", "Other", 2],
|
30 |
+
],
|
31 |
+
)
|
32 |
|
33 |
if __name__ == "__main__":
|
34 |
iface.launch()
|