Skip to content

Commit

Permalink
run code formatting with black
Browse files Browse the repository at this point in the history
  • Loading branch information
98sean98 committed Nov 3, 2023
1 parent 2cdc2f8 commit 42b9765
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/json_request/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

app = Meteorite()


@app.predict
def main(data):
data = json.loads(data)
Expand Down
1 change: 1 addition & 0 deletions examples/webhook/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ def main(data):
print(data)
return "my prediction is 1"


app.start()
2 changes: 1 addition & 1 deletion examples/webhook/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
@app.post("/", response_class=Response)
async def handle(request: Request):
body = await request.body()
print(body.decode('utf-8'))
print(body.decode("utf-8"))
return "OK"

0 comments on commit 42b9765

Please sign in to comment.