Update app.py
Browse files
app.py
CHANGED
@@ -10,16 +10,17 @@ model = joblib.load(
|
|
10 |
def predict(*features) -> str:
|
11 |
print([features])
|
12 |
print(np.array([features]))
|
|
|
13 |
|
14 |
return model.predict(
|
15 |
-
|
16 |
)
|
17 |
|
18 |
items = ['Seraph', 'Opus', 'Draconic', 'Null Ele Foe', 'Off Ele Foe']
|
19 |
|
20 |
demo = gr.Interface(
|
21 |
fn=predict,
|
22 |
-
inputs=[gr.Slider(minimum=0, maximum=2, label="PnS"),
|
23 |
gr.Checkbox(label='Seraph', info="True or False"),
|
24 |
gr.Checkbox(label='Opus', info="True or False"),
|
25 |
gr.Checkbox(label='Draconic', info="True or False"),
|
|
|
10 |
def predict(*features) -> str:
|
11 |
print([features])
|
12 |
print(np.array([features]))
|
13 |
+
print(list(features))
|
14 |
|
15 |
return model.predict(
|
16 |
+
list(features)
|
17 |
)
|
18 |
|
19 |
items = ['Seraph', 'Opus', 'Draconic', 'Null Ele Foe', 'Off Ele Foe']
|
20 |
|
21 |
demo = gr.Interface(
|
22 |
fn=predict,
|
23 |
+
inputs=[gr.Slider(minimum=0, maximum=2, step=1, label="PnS"),
|
24 |
gr.Checkbox(label='Seraph', info="True or False"),
|
25 |
gr.Checkbox(label='Opus', info="True or False"),
|
26 |
gr.Checkbox(label='Draconic', info="True or False"),
|