Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +91,6 @@ def buscar_combinacoes(credito, entrada, parcela, adm_selecionadas):
|
|
| 91 |
if not grupos:
|
| 92 |
return "🚫 Nenhuma cota encontrada com os filtros."
|
| 93 |
|
| 94 |
-
# Tolerâncias
|
| 95 |
if credito > 5000000:
|
| 96 |
tol_cred, tol_ent, tol_par = 0.50, 0.50, 1.00
|
| 97 |
max_cotas = 25
|
|
@@ -176,7 +175,7 @@ def formatar_resultados(resultados):
|
|
| 176 |
# Carrega a planilha antes de iniciar
|
| 177 |
carregar_planilha()
|
| 178 |
|
| 179 |
-
#
|
| 180 |
demo = gr.Interface(
|
| 181 |
fn=buscar_combinacoes,
|
| 182 |
inputs=[
|
|
|
|
| 91 |
if not grupos:
|
| 92 |
return "🚫 Nenhuma cota encontrada com os filtros."
|
| 93 |
|
|
|
|
| 94 |
if credito > 5000000:
|
| 95 |
tol_cred, tol_ent, tol_par = 0.50, 0.50, 1.00
|
| 96 |
max_cotas = 25
|
|
|
|
| 175 |
# Carrega a planilha antes de iniciar
|
| 176 |
carregar_planilha()
|
| 177 |
|
| 178 |
+
# Interface usando gr.Interface (API automática em /api/predict)
|
| 179 |
demo = gr.Interface(
|
| 180 |
fn=buscar_combinacoes,
|
| 181 |
inputs=[
|