Spaces:
Runtime error
Runtime error
Update app.py
Browse filesCambio de inglés a español
app.py
CHANGED
@@ -59,9 +59,9 @@ def predict_survival(sex, age, fare):
|
|
59 |
pred = clf.predict_proba(df)[0]
|
60 |
return {'Perishes': float(pred[0]), 'Survives': float(pred[1])}
|
61 |
|
62 |
-
sex = gr.inputs.Radio(['female', 'male'], label="
|
63 |
-
age = gr.inputs.Slider(minimum=0, maximum=120, default=22, label="
|
64 |
-
fare = gr.inputs.Slider(minimum=0, maximum=200, default=100, label="
|
65 |
|
66 |
gr.Interface(predict_survival, [sex, age, fare], "label", live=True, thumbnail="https://raw.githubusercontent.com/gradio-app/hub-titanic/master/thumbnail.png", analytics_enabled=False,
|
67 |
-
title="
|
|
|
59 |
pred = clf.predict_proba(df)[0]
|
60 |
return {'Perishes': float(pred[0]), 'Survives': float(pred[1])}
|
61 |
|
62 |
+
sex = gr.inputs.Radio(['female', 'male'], label="Sexo")
|
63 |
+
age = gr.inputs.Slider(minimum=0, maximum=120, default=22, label="Edad")
|
64 |
+
fare = gr.inputs.Slider(minimum=0, maximum=200, default=100, label="Clase")
|
65 |
|
66 |
gr.Interface(predict_survival, [sex, age, fare], "label", live=True, thumbnail="https://raw.githubusercontent.com/gradio-app/hub-titanic/master/thumbnail.png", analytics_enabled=False,
|
67 |
+
title="Sobrevivientes del Titanic", description="Analicemos los sobreviventes de este caso.").launch();
|