Spaces:
Sleeping

Crislene commited on
Commit
13b725d
·
verified ·
1 Parent(s): 41898d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -77,14 +77,14 @@ tema_personalizado = gr.themes.Soft(
77
  )
78
 
79
  with gr.Blocks(theme=tema_personalizado, title="🔍 TalentScope CS") as app:
80
- gr.HTML("""
81
  <div style="text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
82
  padding: 25px; border-radius: 15px; color: white; margin-bottom: 20px;">
83
  <h1 style="margin: 0;">TalentScope CS</h1>
84
  <p style="opacity: 0.9;">Análise Inteligente para Estágio em Customer Success</p>
85
  </div>
86
  """)
87
-
88
  with gr.Row():
89
  with gr.Column(scale=1):
90
  with gr.Group():
@@ -141,23 +141,24 @@ with gr.Blocks(theme=tema_personalizado, title="🔍 TalentScope CS") as app:
141
  "❌ Não Aderente"
142
  )
143
 
144
- return {
145
- status_output: rotulo_status,
146
- prob_final: round(proba_ajustada, 1),
147
- prob_base: round(proba, 1),
148
- bonus: round(analise_curriculo["pontuacao"] * 3, 1),
149
- palavra_chave_exibicao: dados_palavra_chave,
150
- melhorias_html = "<ul style='padding-left: 1.2em;'>"
151
- for item in analise_curriculo["termos_ausentes"]:
152
  melhorias_html += f"""
153
  <li style='margin-bottom: 8px;'>
154
  <strong style="color: {CONFIG['palavras-chave'][item['categoria']]['cor']};">
155
  {item['categoria']}:
156
  </strong> {item['sugestao']}
157
  </li>
158
- """
159
- melhorias_html += "</ul>"
160
 
 
 
 
 
 
 
 
161
  }
162
 
163
  except Exception as e:
 
77
  )
78
 
79
  with gr.Blocks(theme=tema_personalizado, title="🔍 TalentScope CS") as app:
80
+ gr.HTML("""
81
  <div style="text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
82
  padding: 25px; border-radius: 15px; color: white; margin-bottom: 20px;">
83
  <h1 style="margin: 0;">TalentScope CS</h1>
84
  <p style="opacity: 0.9;">Análise Inteligente para Estágio em Customer Success</p>
85
  </div>
86
  """)
87
+
88
  with gr.Row():
89
  with gr.Column(scale=1):
90
  with gr.Group():
 
141
  "❌ Não Aderente"
142
  )
143
 
144
+ melhorias_html = "<ul style='padding-left: 1.2em;'>"
145
+ for item in analise_curriculo["termos_ausentes"]:
 
 
 
 
 
 
146
  melhorias_html += f"""
147
  <li style='margin-bottom: 8px;'>
148
  <strong style="color: {CONFIG['palavras-chave'][item['categoria']]['cor']};">
149
  {item['categoria']}:
150
  </strong> {item['sugestao']}
151
  </li>
152
+ """
153
+ melhorias_html += "</ul>"
154
 
155
+ return {
156
+ status_output: rotulo_status,
157
+ prob_final: round(proba_ajustada, 1),
158
+ prob_base: round(proba, 1),
159
+ bonus: round(analise_curriculo["pontuacao"] * 3, 1),
160
+ palavra_chave_exibicao: dados_palavra_chave,
161
+ melhoria_tips: melhorias_html
162
  }
163
 
164
  except Exception as e: