Spaces:
Runtime error
Runtime error
sandrocalzada
commited on
Commit
•
adb1c6d
1
Parent(s):
040f7b8
Update app.py
Browse files
app.py
CHANGED
@@ -23,4 +23,18 @@ def analyze_cv(cv_file, desired_role, expected_salary):
|
|
23 |
else:
|
24 |
result = "El candidato no es elegible debido a la falta de experiencia relevante."
|
25 |
|
26 |
-
return result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
else:
|
24 |
result = "El candidato no es elegible debido a la falta de experiencia relevante."
|
25 |
|
26 |
+
return result
|
27 |
+
|
28 |
+
# Definir la interfaz de Gradio
|
29 |
+
iface = gr.Interface(
|
30 |
+
fn=analyze_cv,
|
31 |
+
inputs=[
|
32 |
+
gr.inputs.File(label="Sube tu CV"),
|
33 |
+
gr.inputs.Textbox(label="Nombre del rol o posición deseada"),
|
34 |
+
gr.inputs.Textbox(label="Salario esperado"),
|
35 |
+
],
|
36 |
+
outputs=gr.outputs.Textbox(label="Resultado de la elegibilidad"),
|
37 |
+
)
|
38 |
+
|
39 |
+
# Lanzar la aplicación
|
40 |
+
iface.launch()
|