How to link the spaces with arxiv
Hi,I found that there is a new feature in arXiv which connects the HF spaces demo into the corresponding paper.image2042×540 42.6 KBI’m just curious about how I link my HF spaces demo to my paper.For me, I want to link my demo in CVPR 2022 space (Talking Face Generation with Multilingual TTS - a Hugging Face Space by CVPR) to the corresponding paper ([2205.06421] Talking Face Generation with Multilingual TTS).Thank you in advance.
2022-12-02T23:41:52Z
hi@deepkyu, at the moment the integration happens from a Model page with reference to an arXiv link and that model has to be linked to your Space. For instanceCompVis/stable-diffusion-v1-4 · Hugging Facehas references to arXiv papers, and this SpaceStable Diffusion 2 - a Hugging Face Space by stabilityaihas a link to that model.Here’s what you can doCreate amodel pagewith info and links to your arXiv paper inside the README.mdOn your Space projectapp.pyadd a comment on the first line point to the Model page# https://huggingface.co/deepkyu/MODEL-PAGEI hope that will do the job. I’ll report this internally and see if there’s a better workflow in the futureThanks
2022-12-03T07:58:22Z
Hi@radames,So, the HF model is actually linked to the arXiv paper, and HF Space should use the model for now.I found the model FAQ (Frequently Asked Questions), but have never thought like that.Thank you for your clear explanationIt really helps a lot.
2022-12-03T08:09:08Z
image2496×1540 377 KBIt perfectly works! Thank you again@radames
2022-12-04T22:49:22Z
now there is also a documentation page for future referencehuggingface.coHow to Add a Space to ArXivWe’re on a journey to advance and democratize artificial intelligence through open source and open science.
2022-12-06T04:36:57Z
Thank you@deepkyufor sharing this process on twitter and@radamesfor further documenting.IIUC, there is currently no workflow for connecting an arxiv paper about a method or eval technique, with the demos of that method, because this fails the prereq that the paper is “associated with a model or a datasetthat is on the Hugging Face Hub”.e.g.methods arxiv paper:[2210.00131] Selection Induced Collider Bias: A Gender Pronoun Uncertainty Case Studydemos of methods:Spurious_correlation_evaluation - a Hugging Face Space by emilylearningLlm Uncertainty - a Hugging Face Space by emilylearningI think this is pretty clear from the documentation, I just wanted to make sure I am understanding correctly… before I ponder too deeply work-arounds (e.g. I totally could upload a small challenge dataset created for the paper).
2022-12-06T19:24:33Z
hi@emilylearningyou’re right, however you can always create a Model with a simple Model Card / README.md linking to your arXiv Paper and referencing it on your Space demo. Like@deepkyudid heredeepkyu/ml-talking-face · Hugging Face.
2022-12-06T19:37:23Z
Ahh, sorry I missed that@deepkyu’s model card had the explicit purpose of linking the space and the paper. This is my exact solution. I should have just followed the steps more closely. Thanks for the follow up.
2022-12-07T09:12:14Z
we’ll discuss internally to maybe be able to link directly a Space <> ArXiv paper (without having to link via a model or a dataset)We’ll update this thread if we do this!
2022-12-07T17:39:04Z
Thanks for this update! This linking is such a wonderful feature for researchers like me, who really need a compelling demo to convince people the arxiv paper is worth reading.
2022-12-07T20:47:03Z
This process worked wonderfully for me, with one caveat.When I attempted to follow this final step below:Note: You can also add linked models or datasets manually by explicitly updating them in theREADME metadata for the Space, as described here.…the link to arxiv appeared to not manifest. I was distractedly editing from UI, so could have been my own error or impatience.However, when I instead tried to link the model card url directly inapp.py(rather than in theREADME), it did appear to work almost instantly.More details in this commit:huggingface.coadding model card link direct in app.py ·...We’re on a journey to advance and democratize artificial intelligence through open source and open science.Thanks again for all the support!
2022-12-07T21:18:41Z
Hi@emilylearning, now sure what went wrong with your original flow. However,@julien-cdid push a new backend feature also linking Spaces with arXiv papers directly. That why it’s workingand it’s much easier now. Thanks
2022-12-07T21:31:16Z
hah, amazing! so fast! Thank you!
2022-12-08T14:51:55Z
Hi, thank you all for sharing your insight into the process. I am having no luck linking my demo to arxiv so far. All the links to arxiv (on the model page and the space) link to the correct paper as described in the documentation. Could any of the following two circumstances cause an issue?Private model repositoryDemo hosted in organization space
2022-12-08T16:53:45Z
Hi@St0nedB, sorry you having issues. Is the demo also private? I don’t think it would work if either Model or Space demo is private. If the the Model is private and the Space Demo is not, you can add a link to your arXiv paper inside your Space, README.md or a comment on you code app.py, this is working since yesterday. Thanks
2022-12-23T16:27:39Z
Hi@radames, sorry for the late reply. I tried your suggestion but it doesn’t seem to be working.My setup is as follows:the model is private. its page correctly shows the link to the arXiv paperthe space holding the demo is public (in an organization, as our group wants to have one place to have all our demos)Both theapp.pyand theREADME.mdcontain links to the arXiv paper. In theapp.pythe link is placed as a comment on the first line. In theREADME.mdit is a Markdown-formatted link.Any ideas about what could be the issue?
2023-01-03T19:09:51Z
hi@St0nedB, sorry, I was too precipitated, and the arXiv integration direct to Spaces is not ready yet. So if you have a private model, create a public model with a simple README.md model card pointing to your arXiv paper, then link that public model into your Space. exampledeepkyu/ml-talking-face · Hugging Facelink to model page hereapp.py · CVPR/ml-talking-face at mainPlease let us know if that works for you.
2023-01-09T12:05:54Z
That did the trick. Thanks for helping out!