GitHub Actions commited on
Commit
fc10025
·
1 Parent(s): 99d9e74

Auto-deploy from GitHub

Browse files
models/detect.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dc0033a3face8e26aea12afad02f9471feca4264655ff081a2b05df0242d60a9
3
- size 52118546
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:329114e15e99614491c1f49226c9bbffe7a94f2cfd1c77a9b7c0557c515292ec
3
+ size 52112978
municipal_predictor.py CHANGED
@@ -92,12 +92,10 @@ class DenguePredictor:
92
  )
93
  df = pd.read_parquet(found)
94
  else:
95
- hf_token = os.environ.get("HF_TOKEN")
96
  inference_path = hf_hub_download(
97
  repo_id="previdengue/predict_inference_data",
98
  filename="inference_data.parquet",
99
- repo_type="dataset",
100
- token=hf_token
101
  )
102
  df = pd.read_parquet(inference_path)
103
  df["codigo_ibge"] = df["codigo_ibge"].astype(int)
 
92
  )
93
  df = pd.read_parquet(found)
94
  else:
 
95
  inference_path = hf_hub_download(
96
  repo_id="previdengue/predict_inference_data",
97
  filename="inference_data.parquet",
98
+ repo_type="dataset"
 
99
  )
100
  df = pd.read_parquet(inference_path)
101
  df["codigo_ibge"] = df["codigo_ibge"].astype(int)
state_predictor.py CHANGED
@@ -94,12 +94,10 @@ class StatePredictor:
94
  # Tenta baixar do HF; se falhar, tenta arquivo local como fallback
95
  df = None
96
  try:
97
- hf_token = os.environ.get("HF_TOKEN")
98
  inference_path = hf_hub_download(
99
- repo_id="previdengue/predict_inference_data",
100
  filename="inference_data_estadual.parquet",
101
- repo_type="dataset",
102
- token=hf_token,
103
  )
104
  df = pd.read_parquet(inference_path)
105
  except Exception:
 
94
  # Tenta baixar do HF; se falhar, tenta arquivo local como fallback
95
  df = None
96
  try:
 
97
  inference_path = hf_hub_download(
98
+ repo_id="previdengue/predict_inference_data_estadual",
99
  filename="inference_data_estadual.parquet",
100
+ repo_type="dataset"
 
101
  )
102
  df = pd.read_parquet(inference_path)
103
  except Exception: