-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
doc for Spaces #189
doc for Spaces #189
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really neat !
(I just need to actually implement pre-installed dependencies and finish Secrets management for the doc to be totally accurate)
@@ -5,7 +5,7 @@ title: Hugging Face Hub Endpoints | |||
# Hugging Face Hub API Endpoints | |||
|
|||
|
|||
We have open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model repos. We offer a wrapper Python library, [`huggingface_hub`](https://github.com/huggingface/huggingface_hub), that allows easy access to these endpoints. We also provide a webhook to receive real-time incremental info about models. Enjoy! | |||
We have open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model repos. We offer a wrapper Python library, [`huggingface_hub`](https://github.com/huggingface/huggingface_hub), that allows easy access to these endpoints. We also provide a [webhook](#webhook) to receive real-time incremental info about models. Enjoy! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep sorry
This is awesome - it'd be great to let participants try that out :-) In the docs it says that |
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Our thinking with @cbensimon was to be model-agnostic (the hub is not just for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! 🎉
Looking forward to this
@@ -0,0 +1,95 @@ | |||
--- | |||
title: Documentation for Spaces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any thumbnail we could add here?
|
||
<h1>How to get started with Spaces</h1> | ||
|
||
> ⚠️ This feature is currently in private beta, reach out to [julien-c](https://huggingface.co/julien-c) if you'd like to try it out ⚠️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think https://huggingface.co/julien-c provides any email to contact you, should this be your email instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, looks great!
|
||
## How does it work? | ||
|
||
We deploy a containerized version of your code on our Infra, each time you commit. As a sidenote, we have many cool infra challenges to solve, if you'd like to help us, please consider reaching out 🙂. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
<!-- Add screencap of listing directory --> | ||
|
||
Finally, we've been thinking of providing a way to run **custom apps**, for instance Python server code for the backend + a unified set of widgets/frontend JS code, or even custom Docker image serving. Do get in touch if you would like to build something more custom. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Can I create private Spaces? | |
Yes! Just like with models and datasets, a Hugging Face subscription will allow you to set a new Space as private when creating it. You can create a private Space for your account, or share a private Space within your organization. [Check our our plans](https://huggingface.co/#) to get started. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically aren't restricted to Paid users, but we can still have this wording to promote Pro accounts (it's remaining in other parts of the doc too)
Do we, or can we enable Private Spaces for subscribers only? Assuming it's
the case, left a suggestion to message it in the doc.
…On Thu, Jul 15, 2021 at 10:48 AM Julien Chaumond ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In docs/hub/spaces.md
<#189 (comment)>
:
> +
+<!-- TODO(have someone record a Youtube demo of Spaces showcasing some cool apps already running, etc) -->
+
+## Should I use Streamlit or Gradio?
+
+We recommend you try both as they're both really awesome! 😎
+
+Streamlit's documentation is at https://docs.streamlit.io/, and Gradio's doc is https://gradio.app/docs.
+
+In the default environment, we're currently running version `"0.79.0"` of Streamlit and version `"2.0.9"` of Gradio.
+
+Our 2 cents:
+- **Gradio** is great if you want to build a super-easy-to-use interface to run a model from just the list of its inputs and its outputs. The Gradio team wrote a great [tutorial on our blog](https://huggingface.co/blog/gradio).
+- **Streamlit** gives you more freedom to build a full-featured Web app from Python, in a _reactive_ way (meaning that code gets re-run when the state of the app changes).
+
+You can also take a look at some sample apps on the [Spaces directory](https://huggingface.co/spaces) to make up your mind.
it will when this is live (upcoming PR) ;)
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#189 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARWHZBKOL2YIQVQEMCAVMX3TX2OEBANCNFSM5ALLKZJQ>
.
|
Thanks everyone for the reviews, I think I addressed everything, but do let me know if i missed anything |
Screen capture: