Skip to content

Update Flask serving command and fix typo in app.py#706

Open
darrylong wants to merge 2 commits into
PreferredAI:masterfrom
darrylong:docs/flask-serving-change
Open

Update Flask serving command and fix typo in app.py#706
darrylong wants to merge 2 commits into
PreferredAI:masterfrom
darrylong:docs/flask-serving-change

Conversation

@darrylong

Copy link
Copy Markdown
Member

Description

Updates the Flask serving command in the README to use Flask's newer --app flag instead of the deprecated FLASK_APP environment variable. Also fixes a typo in app.py where a single quote was missing before remove_seen=true in the log message, and removes trailing whitespace in the same string.

Related Issues

N/A

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Cornac’s model-serving instructions and clarifies the serving app’s startup log output for the remove_seen query parameter.

Changes:

  • Update README serving command to use flask --app cornac.serving.app instead of FLASK_APP=....
  • Fix quoting/whitespace in the serving app’s “remove seen items” startup message.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
README.md Updates the documented Flask run command for serving a saved model.
cornac/serving/app.py Fixes a typo in the startup log message describing remove_seen=true.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
$ MODEL_PATH='save_dir/BPR' \
MODEL_CLASS='cornac.models.BPR' \
flask run --host localhost --port 8080
flask --app cornac.serving.app run --host localhost --port 8080

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darrylong shall we also update the docs to be consistent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants