Skip to content

Commit

Permalink
Merge pull request #27 from asapdiscovery/registry_updates
Browse files Browse the repository at this point in the history
Enable registry updates
  • Loading branch information
hmacdope authored Sep 20, 2024
2 parents d899c95 + 94eacd0 commit b73bbff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions falcbot/falcbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def pred_matcher(event, logger, context):

@app.event("app_mention", matchers=[pred_matcher])
def make_pic50_pred(event, say, context, logger):
# refresh the registry every time a prediction is made
ASAPMLModelRegistry.update_registry()

content = event.get("text")
# parse with LLM
worked, model = llm._BASIC_ML_LLM.query(content)
Expand Down

0 comments on commit b73bbff

Please sign in to comment.