Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -89,19 +89,19 @@ def ml_function(probability, affecting_no_of_modules,
|
|
89 |
iface = gr.Interface(
|
90 |
fn=ml_function,
|
91 |
inputs=[
|
92 |
-
gr.
|
93 |
-
gr.
|
94 |
-
gr.
|
95 |
-
gr.
|
96 |
-
gr.
|
97 |
-
gr.
|
98 |
-
gr.
|
99 |
-
gr.
|
100 |
-
gr.
|
101 |
-
gr.
|
102 |
],
|
103 |
outputs=[
|
104 |
-
gr.
|
105 |
]
|
106 |
)
|
107 |
|
|
|
89 |
iface = gr.Interface(
|
90 |
fn=ml_function,
|
91 |
inputs=[
|
92 |
+
gr.Number(label="Probability"),
|
93 |
+
gr.Number(label="Affecting No of Modules"),
|
94 |
+
gr.Number(label="Fixing Duration (Days)"),
|
95 |
+
gr.Radio(choices=pc, label="Project Category"),
|
96 |
+
gr.Radio(choices=rc, label="Requirement Category"),
|
97 |
+
gr.Radio(choices=rtc, label="Risk Target Category"),
|
98 |
+
gr.Radio(choices=mor, label="Magnitude of Risk"),
|
99 |
+
gr.Radio(choices=imp, label="Impact"),
|
100 |
+
gr.Radio(choices=dor, label="Dimension of Risk"),
|
101 |
+
gr.Slider(minimum=0, maximum=10,step=1, label="Fix Cost (% of Project)")
|
102 |
],
|
103 |
outputs=[
|
104 |
+
gr.Label(label="Risk Level")
|
105 |
]
|
106 |
)
|
107 |
|