Skip to content

Commit

Permalink
stuffz
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashx committed Feb 4, 2024
1 parent 2bd953c commit 27ddeaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rp_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def handler(event):
This is the handler function that will be called by the serverless.
'''

print("Received event: ", event)

if "slackerType" in event and event["slackerType"] == "reactor":
json = run_reactor(event["input"])
if "slackerType" in event["input"] and event["input"]["slackerType"] == "reactor":
print("Running Reactor... currently disabled.")
#json = run_reactor(event["input"])
return {"error": "Reactor is currently disabled."}
else:
json = run_inference(event["input"])

Expand Down

0 comments on commit 27ddeaf

Please sign in to comment.