asilvamaia commited on
Commit
e209770
·
verified ·
1 Parent(s): af1454c

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -2
src/streamlit_app.py CHANGED
@@ -6,7 +6,7 @@ import io
6
 
7
  # --- CONFIGURAÇÕES ---
8
  # ⚠️ IMPORTANTE: Substitua "SEU_USUARIO/NOME_DO_SEU_MODELO" pelo seu ID real no Hugging Face
9
- MODEL_ID = "asilvamaia/ident_br"
10
 
11
  st.set_page_config(page_title="Validador .BR", page_icon="🇧🇷")
12
 
@@ -79,4 +79,8 @@ if uploaded_file and tokenizer:
79
  total_linhas = len(linhas)
80
 
81
  for i, linha in enumerate(linhas):
82
- original = linha.strip()
 
 
 
 
 
6
 
7
  # --- CONFIGURAÇÕES ---
8
  # ⚠️ IMPORTANTE: Substitua "SEU_USUARIO/NOME_DO_SEU_MODELO" pelo seu ID real no Hugging Face
9
+ MODEL_ID = "SEU_USUARIO/NOME_DO_SEU_MODELO"
10
 
11
  st.set_page_config(page_title="Validador .BR", page_icon="🇧🇷")
12
 
 
79
  total_linhas = len(linhas)
80
 
81
  for i, linha in enumerate(linhas):
82
+ original = linha.strip()
83
+
84
+ # --- CORREÇÃO DA LINHA PROBLEMÁTICA ---
85
+ # Verifica se a linha é vazia ou é metadado
86
+ if not original or original.startswith("")