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 d1d1685 commit 14c7320
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 @@ -41,7 +41,7 @@ def tokenize_text(x):


@flask_app.function_name(name="paulxieptest")
@flask_app.post("/predict")
@flask_app.post("/predict", auth_level=func.AuthLevel.ANONYMOUS)
def run_ai():
if request.headers['aikey'] == os.environ['AIKEY']:
if request.is_json:
Expand Down

0 comments on commit 14c7320

Please sign in to comment.