Skip to content

Commit

Permalink
Merge pull request #47 from lehors/fix_config
Browse files Browse the repository at this point in the history
Add HuggingFace and GitHub URL to config file
  • Loading branch information
lehors authored Nov 14, 2024
2 parents 3cfd302 + f3179f1 commit e51ec7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/modules/mof/src/ModelSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ private function processModel(ModelInterface $model): array {
'origin' => $model->getOrigin() ?? '',
'producer' => $model->getOrganization() ?? '',
'contact' => $owner->id() > 1 ? $owner->getEmail() : '',
'github' => $model->getGithubSlug() ? 'https://github.com/' . $model->getGithubSlug() : '',
'huggingface' => $model->getHuggingfaceSlug() ? 'https://huggingface.co/' . $model->getHuggingfaceSlug() : '',
],
];

Expand Down

0 comments on commit e51ec7e

Please sign in to comment.