Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added article topic #12

Closed
wants to merge 2 commits into from
Closed

Conversation

mercelisvaughan
Copy link
Collaborator

this is a sample pull request before I make pull request for the rest. Before you approve can you tell me why "from .liftwing_model import LiftwingModel, ModelMetadata" doesn't work on my machine?

Copy link
Collaborator

@isaranto isaranto left a comment

Choose a reason for hiding this comment

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

Before you approve can you tell me why "from .liftwing_model import LiftwingModel, ModelMetadata" doesn't work on my machine?
In order for me to help with the above you'll have to provide more information on the error message etc.

Comment on lines 5 to 12
lang: str = Field(...,
title="Language code of the wiki",
description='A string representing the language code related to the target '
'wiki. Example: "en" for English Wikipedia.',)
rev_id: int = Field(...,
title="Revision ID of the edit",
description="The revision id for the wiki identified by the lang parameter.",
gt=0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

These are not the correct parameters. Please visit the API docs page for more info.

Comment on lines 18 to 19
api_documentation_url="https://api.wikimedia.org/service/lw/inference/v1/models/outlink-topic-model:predict",
wmf_model_card_url="https://meta.wikimedia.org/wiki/Machine_learning_models/Proposed/Multilingual_readability_model_card"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please update with the proper urls.
The model card is here

@isaranto
Copy link
Collaborator

isaranto commented Jul 2, 2024

Covered by #13

@isaranto isaranto closed this Jul 2, 2024
@isaranto isaranto deleted the article-topic-optional-validation branch July 2, 2024 10:21
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.

2 participants