Skip to content

Commit

Permalink
Testing Azure Function
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul committed May 16, 2024
1 parent 54103f6 commit 56a711a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def tokenize_text(x):
return ' '.join(list(filter(lambda y: y.replace(' ', ''), word_tokenize(filter_thai(x)))))


@flask_app.get("/return_http")
@flask_app.post("/predict")
def run_ai():
if request.headers['aikey'] == os.environ['AIKEY']:
if request.is_json:
Expand Down

0 comments on commit 56a711a

Please sign in to comment.