Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions gradio/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ def __init__(
render: bool = True,
**kwargs,
):
"""
Parameters:
visible: If False, this will be hidden but included in the Blocks config file (its visibility can later be updated).
render: If False, this will not be included in the Blocks config file at all.
"""
self.children = []
super().__init__(visible=visible, render=render, **kwargs)

Expand Down
2 changes: 2 additions & 0 deletions gradio/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def document_fn(fn):
if type(default) == str:
default = '"' + default + '"'
parameter_doc["default"] = default
elif parameter_doc["doc"] is not None and "kwargs" in parameter_doc["doc"]:
parameter_doc["kwargs"] = True
parameter_docs.append(parameter_doc)
assert (
len(parameters) == 0
Expand Down
4 changes: 3 additions & 1 deletion gradio/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def __init__(
variant: str = "default",
):
"""
variant: column type, 'default' (no background) or 'panel' (gray background color and rounded corners)
Parameters:
visible: If False, column will be hidden but included in the Blocks config file (its visibility can later be updated).
variant: column type, 'default' (no background) or 'panel' (gray background color and rounded corners)
"""
self.variant = variant
super().__init__(visible=visible)
Expand Down
2 changes: 1 addition & 1 deletion guides/developing_faster_with_reload_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ In the terminal, run `gradio app.py`. That's it!

Now, you'll see that after you'll see something like this:

```
```bash
Launching in *reload mode* on: http://127.0.0.1:7860 (Press CTRL+C to quit)

Watching...
Expand Down
2 changes: 1 addition & 1 deletion website/homepage/src/docs/obj_doc_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<p class="text-gray-500 italic">{{ param["annotation"] }}</p>
{% if "default" in param %}
<p class="text-gray-500 font-semibold">default: {{ param["default"] }}</p>
{% else %}
{% elif "kwargs" not in param %}
<p class="text-orange-600 font-semibold italic">required</p>
{% endif %}
</td>
Expand Down