Improves "Getting Started" guide#1269
Conversation
| A web-based demo is great as it allows anyone who can use a browser (not just technical people) to intuitively try their own inputs and understand what you've built. | ||
|
|
||
| * `gradio.Interface`: a high-level API that allows you to create a machine learning demo simply by specifying a list of inputs and outputs. It often takes just a few lines of Python to create a fully usable and share machine learning demo. | ||
| However, creating such web-based demos has traditionally been difficult, as you needed to know backend frameworks (like Flask or Django) for serving the web app, containerization tools (like Docker) to package the model, databases to store data or users, and front end web development (HTML, CSS, JavaScript) to build a GUI for your demo. |
There was a problem hiding this comment.
Hmm, I kinda feel like this is a bit long, WDYT @aliabd and @aliabid94?
There was a problem hiding this comment.
Yes, feel the same way. Working on shortening it
There was a problem hiding this comment.
We could just say without any web development or hosting
| Notice how the state persists across submits within each page, but the state is not shared between the two pages. Some more points to note: you can pass in a default value to the state parameter, which is used as the initial value of the state. The state must be a something that can be serialized to a JSON format (e.g. a dictionary, a list, or a single value. Typically, objects will not work). | ||
|
|
||
| ### Flagging | ||
| ### Flagging 🚩 |
There was a problem hiding this comment.
I think we can also shoot these sections to advanced_interface_features and shorten getting_started quite a bit. I think we should not try to show every feature on getting_started but let users take a quick start from here.
Flagging 🚩
Working with DataFrames and Graphs 📈
Working with Images 🎨
There was a problem hiding this comment.
Hmm I wouldn't want users to miss these...
To make the quickstart easier to navigate, I'm adding a sidebar similar to the docs
There was a problem hiding this comment.
If that is the case I suggest we move these sections to the end of the document. Most of the users will take a quick look, and skim through.
There was a problem hiding this comment.
agree with @farukozderim. Live doesn't need to be a section, it can be a single sentence.
There was a problem hiding this comment.
@abidlabs pointing this comment in case you've not seen it:
If that is the case I suggest we move these sections to the end of the document. Most of the users will take a quick look, and skim through.
|
#1274 @osanseviero provided some feedback on the Getting Started, worth looking through as well! |
| ### Loading Hugging Face Models and Spaces | ||
|
|
||
| Gradio integrates nicely with the Hugging Face Hub, allowing you to load models and Spaces with just one line of code. To use this, simply use the `load()` method in the `Interface` class. So: | ||
| We won't cover how Blocks works in this Quickstart, but if you are interested in more customization, [read our dedicated Guide to Blocks](introduction_to_blocks). |
There was a problem hiding this comment.
Delete "won't cover how Blocks works in this Quickstart, but"
|
Incorporated various feedback from @aliabid94, @farukozderim, and @osanseviero. Thank you so much guys! |
Uh oh!
There was an error while loading. Please reload this page.