Skip to content

Commit

Permalink
Add index
Browse files Browse the repository at this point in the history
  • Loading branch information
listofbanned committed Oct 26, 2022
1 parent 135254d commit 6efc3e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ def load_image_from_url(img_url, image_size, device):
return image


@app.get('/'):
def main():
return {'response': 'ok'}


@app.get('/image_captioning/{img_url}')
async def exec_image_captioning(img_url: str):
try:
Expand Down

0 comments on commit 6efc3e9

Please sign in to comment.