Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2e53495 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-milan committed Nov 19, 2023
1 parent 4919af8 commit 1e0519a
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 120 deletions.
8 changes: 0 additions & 8 deletions rj_escritorio/flooding_detection/flows.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ <h1 class="title">Module <code>pipelines.rj_escritorio.flooding_detection.flows<
)
from pipelines.utils.decorators import Flow

filter_results = FilterTask(
filter_func=lambda x: not isinstance(x, (BaseException, type(None)))
)

with Flow(
name=&#34;EMD: flooding_detection - Atualizar detecção de alagamento (IA) na API&#34;,
code_owners=[
Expand Down Expand Up @@ -115,7 +111,6 @@ <h1 class="title">Module <code>pipelines.rj_escritorio.flooding_detection.flows<
cameras_with_image = get_snapshot.map(
camera=cameras,
)
cameras_with_image = filter_results(cameras_with_image)
cameras_with_image_and_classification = get_prediction.map(
camera_with_image=cameras_with_image,
flooding_prompt=unmapped(openai_flooding_detection_prompt),
Expand All @@ -124,9 +119,6 @@ <h1 class="title">Module <code>pipelines.rj_escritorio.flooding_detection.flows<
openai_api_max_tokens=unmapped(openai_api_max_tokens),
openai_api_url=unmapped(openai_api_url),
)
cameras_with_image_and_classification = filter_results(
cameras_with_image_and_classification
)
update_flooding_api_data(
cameras_with_image_and_classification=cameras_with_image_and_classification,
data_key=redis_key_flooding_detection_data,
Expand Down
2 changes: 1 addition & 1 deletion rj_escritorio/flooding_detection/schedules.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1 class="title">Module <code>pipelines.rj_escritorio.flooding_detection.schedu
constants.RJ_ESCRITORIO_AGENT_LABEL.value,
],
parameter_defaults={
&#34;cameras_geodf_url&#34;: &#34;https://prefeitura-rio.github.io/storage/cameras_geo_min_bolsao.csv&#34;, # noqa
&#34;cameras_geodf_url&#34;: &#34;https://prefeitura-rio.github.io/storage/cameras_geo_min_bolsao_sample.csv&#34;, # noqa
&#34;mocked_cameras_number&#34;: 0,
&#34;openai_api_key_secret_path&#34;: &#34;openai-api-key-flooding-detection&#34;,
&#34;openai_api_max_tokens&#34;: 300,
Expand Down
Loading

0 comments on commit 1e0519a

Please sign in to comment.