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

Hugging Face Labs PR #757

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Hugging Face Labs PR #757

wants to merge 2 commits into from

Conversation

jbdel
Copy link

@jbdel jbdel commented Oct 3, 2024

No description provided.

@jbdel
Copy link
Author

jbdel commented Oct 3, 2024

Hugging Face Toggle (Code, Data and Media)
Rreference is LABS-142.

If the arxiv_id exist on the Hugging Face paper page, fetch the paper page and resources (dataset, models, spaces) associated to this paper:

hf-labs

Otherwise, suggest to index the paper on the Hugging Face paper page:

hf_nopaper

Thanks,
JB


const huggingfaceApiHost = "https://huggingface.co/api";
const huggingfaceRepo = `${huggingfaceApiHost}/arxiv/${arxivPaperId}/repos`;
const huggingfacePaperApi = `${huggingfaceApiHost}/papers/${arxivPaperId}?field=comments`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are comments needed?

Suggested change
const huggingfacePaperApi = `${huggingfaceApiHost}/papers/${arxivPaperId}?field=comments`;
const huggingfacePaperApi = `${huggingfaceApiHost}/papers/${arxivPaperId}`;


const MAX_TAGS = 5; // You can adjust this value as needed

// Search the HF API for demos that cite this paper
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment should be updated

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