mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-31 12:20:26 +08:00
Adds kwarg to disable html sanitization in gr.Chatbot()
(#5304)
* disable sanitize * add changeset * Fix devcontainer postCreateCommand (#5289) * add chmod commands to grant execute permissions to each script before running them * increase the memory limit * Increase memory requirement to 8 * Setting a minimum specification for codespace machines * Rotate axes labels on LinePlot, BarPlot, and ScatterPlot (#5305) * add chmod commands to grant execute permissions to each script before running them * increase the memory limit * Increase memory requirement to 8 * Setting a minimum specification for codespace machines * Added label_angle parameter to LinePlot * add the x_label_angle and y_label_angle to the postprocess * Add x_label_angle and y_label_angle to ScatterPlot * Add x_label_angle and y_label_angle to BarPlot * Remove postCreateCommand update from this PR, it is in its own PR * Remove custumization on the devcontainer, it is on another PR * Remove extra line on the devcontainer, it is on another PR * add changeset * update the parameter definition in the docstring --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * `make_waveform()` twitter video resolution fix (#5296) * waveform res fix * add changeset * add changeset * Improve audio streaming (#5238) * changes * changes * add changeset * add changeset * chages * Update silver-clowns-brush.md * changes * chagers * changes * Update silver-clowns-brush.md * change * change --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: pngwn <hello@pngwn.io> * Tweaks to `icon` parameter in `gr.Button()` (#5285) * button * add changeset * fix * add changeset * add changeset * types * type fix * formatting * fix based on review * fix unit tests * stories --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * test * test --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: aliabid94 <aabid94@gmail.com> Co-authored-by: pngwn <hello@pngwn.io> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Allow caching examples with streamed output (#5295) * changes * changes * add changeset * add changeset * chages * Update silver-clowns-brush.md * changes * chagers * changes * Update silver-clowns-brush.md * change * change * change * changes * chages * changes * add changeset * changes * changes * changes --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: pngwn <hello@pngwn.io> * Create event listener table for components on docs (#5298) * changes * changes * remove languages from code docs * fix img path in guide * rework event listeners * add changeset * remove console log * name it event arguments * Update js/_website/src/lib/components/EventListeners.svelte Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Update js/_website/src/lib/components/EventListeners.svelte Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * requested changes --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * merge * fix (#5308) * only start listening for events after the components are mounted (#5312) * only start listening for events after the components are mounted * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Restores missing part of bottom border on file component (#5313) * removes missing part of bottom border on file component * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (#5177) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Test Blocks.svelte footer copy (#5307) * test test * fix test * tweak * tweak test name * ensure login form has correct styles (#5324) * fix changelog generation (#5328) * Add ignore scripts to pnpm i in pypi action (#5316) * add json generation to prepare * add changeset * remove pnpm prepare * add changeset * bring back prepare, add ignore scripts * delete changeset * add to right commadn * add frozen lockfile to gh_action_pypi * remove unused gh_action_pypi script * remove unused scripts --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * ensure dropdown stays open when identical data is passed in (#5323) * ensure dropwdown stays open when new data is passed in * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix ci again again again (#5329) * fix changelog generation * fix changelog generation * fix * chore: update versions (#5326) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Fix ci again again again (#5330) * fix changelog generation * fix changelog generation * fix * fix script * Fix ci again again again (#5331) * fix changelog generation * fix changelog generation * fix * fix script * fix script * Fix ci again again again (#5332) * fix changelog generation * fix changelog generation * fix * fix script * fix script * fix vars * Fix ci again again again (#5333) * fix changelog generation * fix changelog generation * fix * fix script * fix script * fix vars * fix vars * Fix Checkbox select dispatch (#5340) * Fix bug * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Minor bug fix sweep (#5284) * changes * changes * add changeset * changes * changes * fix box changes on website * add changeset * changes * changes * Revert "changes" This reverts commit 189b4e844a9d30a45f4d4fb855397ae592a9b725. * chanegs * changes * changes * changes * changes * add changeset * Update fancy-bats-deny.md --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: aliabd <ali.si3luwa@gmail.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Fix: wrap avatar-image in a div to clip its shape (#5319) * fix: wrap avatar-image in a div to clip its shape and add data url support * add changeset * revert get file from data url * add changeset --------- Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (#5341) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * add kwarg to markdown * add changeset * config --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Faiga Alawad <faiga.alawd91@gmail.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: aliabid94 <aabid94@gmail.com> Co-authored-by: pngwn <hello@pngwn.io> Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Hannah <hannahblair@users.noreply.github.com> Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com> Co-authored-by: Keldos <Keldos.ljw@gmail.com>
This commit is contained in:
parent
c5bf91385a
commit
05892302fb
8
.changeset/clear-suits-own.md
Normal file
8
.changeset/clear-suits-own.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
"@gradio/chatbot": patch
|
||||
"@gradio/markdown": patch
|
||||
"gradio": patch
|
||||
"website": patch
|
||||
---
|
||||
|
||||
fix:Adds kwarg to disable html sanitization in `gr.Chatbot()`
|
@ -55,6 +55,7 @@ class Chatbot(Changeable, Selectable, IOComponent, JSONSerializable):
|
||||
show_share_button: bool | None = None,
|
||||
show_copy_button: bool = False,
|
||||
avatar_images: tuple[str | Path | None, str | Path | None] | None = None,
|
||||
sanitize_html: bool = True,
|
||||
bubble_full_width: bool = True,
|
||||
**kwargs,
|
||||
):
|
||||
@ -77,6 +78,7 @@ class Chatbot(Changeable, Selectable, IOComponent, JSONSerializable):
|
||||
show_share_button: If True, will show a share icon in the corner of the component that allows user to share outputs to Hugging Face Spaces Discussions. If False, icon does not appear. If set to None (default behavior), then the icon appears if this Gradio app is launched on Spaces, but not otherwise.
|
||||
show_copy_button: If True, will show a copy button for each chatbot message.
|
||||
avatar_images: Tuple of two avatar image paths or URLs for user and bot (in that order). Pass None for either the user or bot image to skip. Must be within the working directory of the Gradio app or an external URL.
|
||||
sanitize_html: If False, will disable HTML sanitization for chatbot messages. This is not recommended, as it can lead to security vulnerabilities.
|
||||
bubble_full_width: If False, the chat bubble will fit to the content of the message. If True (default), the chat bubble will be the full width of the component.
|
||||
"""
|
||||
if color_map is not None:
|
||||
@ -99,6 +101,7 @@ class Chatbot(Changeable, Selectable, IOComponent, JSONSerializable):
|
||||
else show_share_button
|
||||
)
|
||||
self.show_copy_button = show_copy_button
|
||||
self.sanitize_html = sanitize_html
|
||||
self.bubble_full_width = bubble_full_width
|
||||
IOComponent.__init__(
|
||||
self,
|
||||
@ -125,6 +128,7 @@ class Chatbot(Changeable, Selectable, IOComponent, JSONSerializable):
|
||||
"rtl": self.rtl,
|
||||
"show_copy_button": self.show_copy_button,
|
||||
"avatar_images": self.avatar_images,
|
||||
"sanitize_html": self.sanitize_html,
|
||||
"bubble_full_width": self.bubble_full_width,
|
||||
**IOComponent.get_config(self),
|
||||
}
|
||||
@ -146,6 +150,7 @@ class Chatbot(Changeable, Selectable, IOComponent, JSONSerializable):
|
||||
show_share_button: bool | None = None,
|
||||
show_copy_button: bool | None = None,
|
||||
avatar_images: tuple[str | Path | None] | None = None,
|
||||
sanitize_html: bool | None = None,
|
||||
bubble_full_width: bool | None = None,
|
||||
):
|
||||
updated_config = {
|
||||
@ -162,6 +167,7 @@ class Chatbot(Changeable, Selectable, IOComponent, JSONSerializable):
|
||||
"latex_delimiters": latex_delimiters,
|
||||
"show_copy_button": show_copy_button,
|
||||
"avatar_images": avatar_images,
|
||||
"sanitize_html": sanitize_html,
|
||||
"bubble_full_width": bubble_full_width,
|
||||
"__type__": "update",
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ class Markdown(IOComponent, Changeable, StringSerializable):
|
||||
visible: bool = True,
|
||||
elem_id: str | None = None,
|
||||
elem_classes: list[str] | str | None = None,
|
||||
sanitize_html: bool = True,
|
||||
**kwargs,
|
||||
):
|
||||
"""
|
||||
@ -46,11 +47,13 @@ class Markdown(IOComponent, Changeable, StringSerializable):
|
||||
visible: If False, component will be hidden.
|
||||
elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
|
||||
elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
|
||||
sanitize_html: If False, will disable HTML sanitization when converted from markdown. This is not recommended, as it can lead to security vulnerabilities.
|
||||
"""
|
||||
self.rtl = rtl
|
||||
if latex_delimiters is None:
|
||||
latex_delimiters = [{"left": "$", "right": "$", "display": False}]
|
||||
self.latex_delimiters = latex_delimiters
|
||||
self.sanitize_html = sanitize_html
|
||||
|
||||
IOComponent.__init__(
|
||||
self,
|
||||
@ -78,6 +81,7 @@ class Markdown(IOComponent, Changeable, StringSerializable):
|
||||
"value": self.value,
|
||||
"rtl": self.rtl,
|
||||
"latex_delimiters": self.latex_delimiters,
|
||||
"sanitize_html": self.sanitize_html,
|
||||
**Component.get_config(self),
|
||||
}
|
||||
|
||||
@ -87,12 +91,14 @@ class Markdown(IOComponent, Changeable, StringSerializable):
|
||||
visible: bool | None = None,
|
||||
rtl: bool | None = None,
|
||||
latex_delimiters: list[dict[str, str | bool]] | None = None,
|
||||
sanitize_html: bool | None = None,
|
||||
):
|
||||
updated_config = {
|
||||
"visible": visible,
|
||||
"value": value,
|
||||
"rtl": rtl,
|
||||
"latex_delimiters": latex_delimiters,
|
||||
"sanitize_html": sanitize_html,
|
||||
"__type__": "update",
|
||||
}
|
||||
return updated_config
|
||||
|
@ -21,8 +21,8 @@
|
||||
</h4>
|
||||
<p class="mb-4 text-lg text-gray-600">
|
||||
The <span class="font-mono">{fns[0].parent.replace("gradio.", "")}</span>
|
||||
component supports the following event listeners. Each event listener takes
|
||||
the same parameters, which are listed in the
|
||||
component supports the following event listeners. Each event listener takes the
|
||||
same parameters, which are listed in the
|
||||
<a href="#event-listeners-arguments" class="text-orange-500 font-light"
|
||||
>Event Arguments</a
|
||||
> table below.
|
||||
|
@ -27,6 +27,7 @@
|
||||
export let rtl = false;
|
||||
export let show_copy_button = false;
|
||||
export let avatar_images: [string | null, string | null] = [null, null];
|
||||
export let sanitize_html = true;
|
||||
export let bubble_full_width = true;
|
||||
export let root: string;
|
||||
export let root_url: null | string;
|
||||
@ -123,7 +124,12 @@
|
||||
dir={rtl ? "rtl" : "ltr"}
|
||||
>
|
||||
{#if typeof message === "string"}
|
||||
<Markdown {message} {latex_delimiters} on:load={scroll} />
|
||||
<Markdown
|
||||
{message}
|
||||
{latex_delimiters}
|
||||
{sanitize_html}
|
||||
on:load={scroll}
|
||||
/>
|
||||
{#if feedback && j == 1}
|
||||
<div class="feedback">
|
||||
{#each feedback as f}
|
||||
|
@ -23,6 +23,7 @@
|
||||
export let show_share_button = false;
|
||||
export let rtl = false;
|
||||
export let show_copy_button = false;
|
||||
export let sanitize_html = true;
|
||||
export let bubble_full_width = true;
|
||||
export let latex_delimiters: {
|
||||
left: string;
|
||||
@ -97,6 +98,7 @@
|
||||
on:share={(e) => gradio.dispatch("share", e.detail)}
|
||||
on:error={(e) => gradio.dispatch("error", e.detail)}
|
||||
{avatar_images}
|
||||
{sanitize_html}
|
||||
{bubble_full_width}
|
||||
{root_url}
|
||||
{root}
|
||||
|
@ -10,6 +10,7 @@
|
||||
export let value: string;
|
||||
export let min_height = false;
|
||||
export let rtl = false;
|
||||
export let sanitize_html = true;
|
||||
|
||||
const dispatch = createEventDispatcher<{ change: undefined }>();
|
||||
|
||||
@ -31,7 +32,12 @@
|
||||
dir={rtl ? "rtl" : "ltr"}
|
||||
use:copy
|
||||
>
|
||||
<MarkdownCode message={value} {latex_delimiters} chatbot={false} />
|
||||
<MarkdownCode
|
||||
message={value}
|
||||
{latex_delimiters}
|
||||
{sanitize_html}
|
||||
chatbot={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
export let chatbot = true;
|
||||
export let message: string;
|
||||
export let sanitize_html = true;
|
||||
export let latex_delimiters: {
|
||||
left: string;
|
||||
right: string;
|
||||
@ -26,6 +27,7 @@
|
||||
}[];
|
||||
|
||||
let el: HTMLSpanElement;
|
||||
let html: string;
|
||||
|
||||
DOMPurify.addHook("afterSanitizeAttributes", function (node) {
|
||||
if ("target" in node) {
|
||||
@ -36,9 +38,13 @@
|
||||
|
||||
$: el && html && render_html(message);
|
||||
|
||||
$: html =
|
||||
message && message.trim() ? DOMPurify.sanitize(marked.parse(message)) : "";
|
||||
|
||||
$: if (message && message.trim()) {
|
||||
html = sanitize_html
|
||||
? DOMPurify.sanitize(marked.parse(message))
|
||||
: marked.parse(message);
|
||||
} else {
|
||||
html = "";
|
||||
}
|
||||
async function render_html(value: string): Promise<void> {
|
||||
if (latex_delimiters.length > 0) {
|
||||
render_math_in_element(el, {
|
||||
|
@ -13,6 +13,7 @@
|
||||
export let value = "";
|
||||
export let loading_status: LoadingStatus;
|
||||
export let rtl = false;
|
||||
export let sanitize_html = true;
|
||||
export let gradio: Gradio<{
|
||||
change: never;
|
||||
}>;
|
||||
@ -37,6 +38,7 @@
|
||||
{rtl}
|
||||
on:change={() => gradio.dispatch("change")}
|
||||
{latex_delimiters}
|
||||
{sanitize_html}
|
||||
/>
|
||||
</div>
|
||||
</Block>
|
||||
|
@ -2018,6 +2018,7 @@ class TestChatbot:
|
||||
"rtl": False,
|
||||
"show_copy_button": False,
|
||||
"avatar_images": (None, None),
|
||||
"sanitize_html": True,
|
||||
"bubble_full_width": True,
|
||||
}
|
||||
|
||||
|
@ -1,449 +1,477 @@
|
||||
{
|
||||
"version": "3.40.1",
|
||||
"mode": "blocks",
|
||||
"dev_mode": true,
|
||||
"analytics_enabled": true,
|
||||
"components": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "markdown",
|
||||
"props": {
|
||||
"value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",
|
||||
"rtl": false,
|
||||
"latex_delimiters": [
|
||||
{
|
||||
"left": "$",
|
||||
"right": "$",
|
||||
"display": false
|
||||
}
|
||||
],
|
||||
"name": "markdown",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "checkboxgroup",
|
||||
"props": {
|
||||
"choices": [
|
||||
["Covid", "Covid"],
|
||||
["Malaria", "Malaria"],
|
||||
["Lung Cancer", "Lung Cancer"]
|
||||
],
|
||||
"value": [],
|
||||
"label": "Disease to Scan For",
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "checkboxgroup",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ListStringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": ["Covid"],
|
||||
"serialized": ["Covid"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "tabs",
|
||||
"props": {
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "tabitem",
|
||||
"props": {
|
||||
"label": "X-ray",
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "row",
|
||||
"props": {
|
||||
"type": "row",
|
||||
"variant": "default",
|
||||
"equal_height": true,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "image",
|
||||
"props": {
|
||||
"image_mode": "RGB",
|
||||
"source": "upload",
|
||||
"tool": "editor",
|
||||
"streaming": false,
|
||||
"mirror_webcam": true,
|
||||
"brush_color": "#000000",
|
||||
"mask_opacity": 0.7,
|
||||
"selectable": false,
|
||||
"show_share_button": false,
|
||||
"show_download_button": true,
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "image",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ImgSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string",
|
||||
"description": "base64 representation of an image"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJCPny78lzYLgjAJ8vAP9fX/+MjMUcAN8zM/9wcM8ZGcATEL+QePdZWf/29uc/P9cmJu9MTDImIN+/r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IxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==",
|
||||
"serialized": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "json",
|
||||
"props": {
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "json",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "JSONSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": {},
|
||||
"description": "any valid json"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
},
|
||||
"serialized": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "button",
|
||||
"props": {
|
||||
"value": "Run",
|
||||
"variant": "secondary",
|
||||
"interactive": true,
|
||||
"name": "button",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": "tabitem",
|
||||
"props": {
|
||||
"label": "CT Scan",
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": "row",
|
||||
"props": {
|
||||
"type": "row",
|
||||
"variant": "default",
|
||||
"equal_height": true,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": "image",
|
||||
"props": {
|
||||
"image_mode": "RGB",
|
||||
"source": "upload",
|
||||
"tool": "editor",
|
||||
"streaming": false,
|
||||
"mirror_webcam": true,
|
||||
"brush_color": "#000000",
|
||||
"mask_opacity": 0.7,
|
||||
"selectable": false,
|
||||
"show_share_button": false,
|
||||
"show_download_button": true,
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "image",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ImgSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string",
|
||||
"description": "base64 representation of an image"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJCPny78lzYLgjAJ8vAP9fX/+MjMUcAN8zM/9wcM8ZGcATEL+QePdZWf/29uc/P9cmJu9MTDImIN+/r7+/vz8/P8VNQGNugV8AAF9fX8swMNgTAFlDOICAgPNSUnNWSMQ5MBAQEJE3QPIGAM9AQMqGcG9vb6MhJsEdGM8vLx8fH98AANIWAMuQeL8fABkTEPPQ0OM5OSYdGFl5jo+Pj/+pqcsTE78wMFNGQLYmID4dGPvd3UBAQJmTkP+8vH9QUK+vr8ZWSHpzcJMmILdwcLOGcHRQUHxwcK9PT9DQ0O/v70w5MLypoG8wKOuwsP/g4P/Q0IcwKEswKMl8aJ9fX2xjdOtGRs/Pz+Dg4GImIP8gIH0sKEAwKKmTiKZ8aB/f39Wsl+LFt8dgUE9PT5x5aHBwcP+AgP+WltdgYMyZfyywz78AAAAAAAD///8AAP9mZv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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oJFfA63bduimuqKB1keqwUhoCSK374wbujvOSu4QG6UvxBRydcpKsav++Ca6G8A6Pr1x2kVMyHwsVxUALDq/krnrhPSOzXG1lUTIoffqGR7Goi2MAxbv6O2kEG56I7CSlRsEFKFVyovDJoIRTg7sugNRDGqCJzJgcKE0ywc0ELm6KBCCJo8DIPFeCWNGcyqNFE06ToAfV0HBRgxsvLThHn1oddQMrXj5DyAQgjEHSAJMWZwS3HPxT/QMbabI/iBCliMLEJKX2EEkomBAUCxRi42VDADxyTYDVogV+wSChqmKxEKCDAYFDFj4OmwbY7bDGdBhtrnTQYOigeChUmc1K3QTnAUfEgGFgAWt88hKA6aCRIXhxnQ1yg3BCayK44EWdkUQcBByEQChFXfCB776aQsG0BIlQgQgE8qO26X1h8cEUep8ngRBnOy74E9QgRgEAC8SvOfQkh7FDBDmS43PmGoIiKUUEGkMEC/PJHgxw0xH74yx/3XnaYRJgMB8obxQW6kL9QYEJ0FIFgByfIL7/IQAlvQwEpnAC7DtLNJCKUoO/w45c44GwCXiAFB/OXAATQryUxdN4LfFiwgjCNYg+kYMIEFkCKDs6PKAIJouyGWMS1FSKJOMRB/BoIxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==",
|
||||
"serialized": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"type": "json",
|
||||
"props": {
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "json",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "JSONSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": {},
|
||||
"description": "any valid json"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
},
|
||||
"serialized": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"type": "button",
|
||||
"props": {
|
||||
"value": "Run",
|
||||
"variant": "secondary",
|
||||
"interactive": true,
|
||||
"name": "button",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"type": "textbox",
|
||||
"props": {
|
||||
"lines": 1,
|
||||
"max_lines": 20,
|
||||
"value": "",
|
||||
"type": "text",
|
||||
"autofocus": false,
|
||||
"show_copy_button": false,
|
||||
"container": true,
|
||||
"rtl": false,
|
||||
"show_label": true,
|
||||
"min_width": 160,
|
||||
"name": "textbox",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"type": "form",
|
||||
"props": {
|
||||
"type": "form",
|
||||
"scale": 0,
|
||||
"min_width": 0,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"type": "form",
|
||||
"props": {
|
||||
"type": "form",
|
||||
"scale": 0,
|
||||
"min_width": 0,
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"css": null,
|
||||
"title": "Gradio",
|
||||
"space_id": null,
|
||||
"enable_queue": null,
|
||||
"show_error": true,
|
||||
"show_api": true,
|
||||
"is_colab": false,
|
||||
"stylesheets": [
|
||||
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap",
|
||||
"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
|
||||
],
|
||||
"theme": "default",
|
||||
"layout": {
|
||||
"id": 0,
|
||||
"children": [
|
||||
{
|
||||
"id": 1
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"children": [
|
||||
{
|
||||
"id": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"children": [
|
||||
{
|
||||
"id": 4,
|
||||
"children": [
|
||||
{
|
||||
"id": 5,
|
||||
"children": [
|
||||
{
|
||||
"id": 6
|
||||
},
|
||||
{
|
||||
"id": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"children": [
|
||||
{
|
||||
"id": 10,
|
||||
"children": [
|
||||
{
|
||||
"id": 11
|
||||
},
|
||||
{
|
||||
"id": 12
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 13
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"children": [
|
||||
{
|
||||
"id": 14
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
"targets": [8],
|
||||
"trigger": "click",
|
||||
"inputs": [2, 6],
|
||||
"outputs": [7],
|
||||
"backend_fn": true,
|
||||
"js": null,
|
||||
"queue": null,
|
||||
"api_name": null,
|
||||
"scroll_to_output": false,
|
||||
"show_progress": "full",
|
||||
"every": null,
|
||||
"batch": false,
|
||||
"max_batch_size": 4,
|
||||
"cancels": [],
|
||||
"types": {
|
||||
"continuous": false,
|
||||
"generator": false
|
||||
},
|
||||
"collects_event_data": false,
|
||||
"trigger_after": null,
|
||||
"trigger_only_on_success": false
|
||||
},
|
||||
{
|
||||
"targets": [13],
|
||||
"trigger": "click",
|
||||
"inputs": [2, 11],
|
||||
"outputs": [12],
|
||||
"backend_fn": true,
|
||||
"js": null,
|
||||
"queue": null,
|
||||
"api_name": null,
|
||||
"scroll_to_output": false,
|
||||
"show_progress": "full",
|
||||
"every": null,
|
||||
"batch": false,
|
||||
"max_batch_size": 4,
|
||||
"cancels": [],
|
||||
"types": {
|
||||
"continuous": false,
|
||||
"generator": false
|
||||
},
|
||||
"collects_event_data": false,
|
||||
"trigger_after": null,
|
||||
"trigger_only_on_success": false
|
||||
}
|
||||
]
|
||||
}
|
||||
"version": "3.41.2",
|
||||
"mode": "blocks",
|
||||
"dev_mode": true,
|
||||
"analytics_enabled": true,
|
||||
"components": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "markdown",
|
||||
"props": {
|
||||
"value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",
|
||||
"rtl": false,
|
||||
"latex_delimiters": [
|
||||
{
|
||||
"left": "$",
|
||||
"right": "$",
|
||||
"display": false
|
||||
}
|
||||
],
|
||||
"sanitize_html": true,
|
||||
"name": "markdown",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "checkboxgroup",
|
||||
"props": {
|
||||
"choices": [
|
||||
[
|
||||
"Covid",
|
||||
"Covid"
|
||||
],
|
||||
[
|
||||
"Malaria",
|
||||
"Malaria"
|
||||
],
|
||||
[
|
||||
"Lung Cancer",
|
||||
"Lung Cancer"
|
||||
]
|
||||
],
|
||||
"value": [],
|
||||
"label": "Disease to Scan For",
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "checkboxgroup",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ListStringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": [
|
||||
"Covid"
|
||||
],
|
||||
"serialized": [
|
||||
"Covid"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "tabs",
|
||||
"props": {
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "tabitem",
|
||||
"props": {
|
||||
"label": "X-ray",
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "row",
|
||||
"props": {
|
||||
"type": "row",
|
||||
"variant": "default",
|
||||
"equal_height": true,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "image",
|
||||
"props": {
|
||||
"image_mode": "RGB",
|
||||
"source": "upload",
|
||||
"tool": "editor",
|
||||
"streaming": false,
|
||||
"mirror_webcam": true,
|
||||
"brush_color": "#000000",
|
||||
"mask_opacity": 0.7,
|
||||
"selectable": false,
|
||||
"show_share_button": false,
|
||||
"show_download_button": true,
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "image",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ImgSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string",
|
||||
"description": "base64 representation of an image"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJ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O/w45c44GwCXiAFB/OXAATQryUxdN4LfFiwgjCNYg+kYMIEFkCKDs6PKAIJouyGWMS1FSKJOMRB/BoIxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==",
|
||||
"serialized": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "json",
|
||||
"props": {
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "json",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "JSONSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": {},
|
||||
"description": "any valid json"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
},
|
||||
"serialized": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "button",
|
||||
"props": {
|
||||
"value": "Run",
|
||||
"variant": "secondary",
|
||||
"interactive": true,
|
||||
"name": "button",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": "tabitem",
|
||||
"props": {
|
||||
"label": "CT Scan",
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": "row",
|
||||
"props": {
|
||||
"type": "row",
|
||||
"variant": "default",
|
||||
"equal_height": true,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": "image",
|
||||
"props": {
|
||||
"image_mode": "RGB",
|
||||
"source": "upload",
|
||||
"tool": "editor",
|
||||
"streaming": false,
|
||||
"mirror_webcam": true,
|
||||
"brush_color": "#000000",
|
||||
"mask_opacity": 0.7,
|
||||
"selectable": false,
|
||||
"show_share_button": false,
|
||||
"show_download_button": true,
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "image",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ImgSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string",
|
||||
"description": "base64 representation of an image"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJCPny78lzYLgjAJ8vAP9fX/+MjMUcAN8zM/9wcM8ZGcATEL+QePdZWf/29uc/P9cmJu9MTDImIN+/r7+/vz8/P8VNQGNugV8AAF9fX8swMNgTAFlDOICAgPNSUnNWSMQ5MBAQEJE3QPIGAM9AQMqGcG9vb6MhJsEdGM8vLx8fH98AANIWAMuQeL8fABkTEPPQ0OM5OSYdGFl5jo+Pj/+pqcsTE78wMFNGQLYmID4dGPvd3UBAQJmTkP+8vH9QUK+vr8ZWSHpzcJMmILdwcLOGcHRQUHxwcK9PT9DQ0O/v70w5MLypoG8wKOuwsP/g4P/Q0IcwKEswKMl8aJ9fX2xjdOtGRs/Pz+Dg4GImIP8gIH0sKEAwKKmTiKZ8aB/f39Wsl+LFt8dgUE9PT5x5aHBwcP+AgP+WltdgYMyZfyywz78AAAAAAAD///8AAP9mZv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EHoLX6Kqx+yXqqBANsgCtit4FWQAEkrNbpq7HSOmtwag5w57GrmlJBASEU18ADjUYb3ADTinIttsgSB1oJFfA63bduimuqKB1keqwUhoCSK374wbujvOSu4QG6UvxBRydcpKsav++Ca6G8A6Pr1x2kVMyHwsVxUALDq/krnrhPSOzXG1lUTIoffqGR7Goi2MAxbv6O2kEG56I7CSlRsEFKFVyovDJoIRTg7sugNRDGqCJzJgcKE0ywc0ELm6KBCCJo8DIPFeCWNGcyqNFE06ToAfV0HBRgxsvLThHn1oddQMrXj5DyAQgjEHSAJMWZwS3HPxT/QMbabI/iBCliMLEJKX2EEkomBAUCxRi42VDADxyTYDVogV+wSChqmKxEKCDAYFDFj4OmwbY7bDGdBhtrnTQYOigeChUmc1K3QTnAUfEgGFgAWt88hKA6aCRIXhxnQ1yg3BCayK44EWdkUQcBByEQChFXfCB776aQsG0BIlQgQgE8qO26X1h8cEUep8ngRBnOy74E9QgRgEAC8SvOfQkh7FDBDmS43PmGoIiKUUEGkMEC/PJHgxw0xH74yx/3XnaYRJgMB8obxQW6kL9QYEJ0FIFgByfIL7/IQAlvQwEpnAC7DtLNJCKUoO/w45c44GwCXiAFB/OXAATQryUxdN4LfFiwgjCNYg+kYMIEFkCKDs6PKAIJouyGWMS1FSKJOMRB/BoIxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==",
|
||||
"serialized": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"type": "json",
|
||||
"props": {
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "json",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "JSONSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": {},
|
||||
"description": "any valid json"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
},
|
||||
"serialized": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"type": "button",
|
||||
"props": {
|
||||
"value": "Run",
|
||||
"variant": "secondary",
|
||||
"interactive": true,
|
||||
"name": "button",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"type": "textbox",
|
||||
"props": {
|
||||
"lines": 1,
|
||||
"max_lines": 20,
|
||||
"value": "",
|
||||
"type": "text",
|
||||
"autofocus": false,
|
||||
"show_copy_button": false,
|
||||
"container": true,
|
||||
"rtl": false,
|
||||
"show_label": true,
|
||||
"min_width": 160,
|
||||
"name": "textbox",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"type": "form",
|
||||
"props": {
|
||||
"type": "form",
|
||||
"scale": 0,
|
||||
"min_width": 0,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"type": "form",
|
||||
"props": {
|
||||
"type": "form",
|
||||
"scale": 0,
|
||||
"min_width": 0,
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"css": null,
|
||||
"title": "Gradio",
|
||||
"space_id": null,
|
||||
"enable_queue": null,
|
||||
"show_error": true,
|
||||
"show_api": true,
|
||||
"is_colab": false,
|
||||
"stylesheets": [
|
||||
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap",
|
||||
"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
|
||||
],
|
||||
"theme": "default",
|
||||
"layout": {
|
||||
"id": 0,
|
||||
"children": [
|
||||
{
|
||||
"id": 1
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"children": [
|
||||
{
|
||||
"id": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"children": [
|
||||
{
|
||||
"id": 4,
|
||||
"children": [
|
||||
{
|
||||
"id": 5,
|
||||
"children": [
|
||||
{
|
||||
"id": 6
|
||||
},
|
||||
{
|
||||
"id": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"children": [
|
||||
{
|
||||
"id": 10,
|
||||
"children": [
|
||||
{
|
||||
"id": 11
|
||||
},
|
||||
{
|
||||
"id": 12
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 13
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"children": [
|
||||
{
|
||||
"id": 14
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
"targets": [
|
||||
8
|
||||
],
|
||||
"trigger": "click",
|
||||
"inputs": [
|
||||
2,
|
||||
6
|
||||
],
|
||||
"outputs": [
|
||||
7
|
||||
],
|
||||
"backend_fn": true,
|
||||
"js": null,
|
||||
"queue": null,
|
||||
"api_name": null,
|
||||
"scroll_to_output": false,
|
||||
"show_progress": "full",
|
||||
"every": null,
|
||||
"batch": false,
|
||||
"max_batch_size": 4,
|
||||
"cancels": [],
|
||||
"types": {
|
||||
"continuous": false,
|
||||
"generator": false
|
||||
},
|
||||
"collects_event_data": false,
|
||||
"trigger_after": null,
|
||||
"trigger_only_on_success": false
|
||||
},
|
||||
{
|
||||
"targets": [
|
||||
13
|
||||
],
|
||||
"trigger": "click",
|
||||
"inputs": [
|
||||
2,
|
||||
11
|
||||
],
|
||||
"outputs": [
|
||||
12
|
||||
],
|
||||
"backend_fn": true,
|
||||
"js": null,
|
||||
"queue": null,
|
||||
"api_name": null,
|
||||
"scroll_to_output": false,
|
||||
"show_progress": "full",
|
||||
"every": null,
|
||||
"batch": false,
|
||||
"max_batch_size": 4,
|
||||
"cancels": [],
|
||||
"types": {
|
||||
"continuous": false,
|
||||
"generator": false
|
||||
},
|
||||
"collects_event_data": false,
|
||||
"trigger_after": null,
|
||||
"trigger_only_on_success": false
|
||||
}
|
||||
]
|
||||
}
|
@ -1,449 +1,477 @@
|
||||
{
|
||||
"version": "3.40.1",
|
||||
"mode": "blocks",
|
||||
"dev_mode": true,
|
||||
"analytics_enabled": true,
|
||||
"components": [
|
||||
{
|
||||
"id": 101,
|
||||
"type": "markdown",
|
||||
"props": {
|
||||
"value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",
|
||||
"rtl": false,
|
||||
"latex_delimiters": [
|
||||
{
|
||||
"left": "$",
|
||||
"right": "$",
|
||||
"display": false
|
||||
}
|
||||
],
|
||||
"name": "markdown",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 102,
|
||||
"type": "checkboxgroup",
|
||||
"props": {
|
||||
"choices": [
|
||||
["Covid", "Covid"],
|
||||
["Malaria", "Malaria"],
|
||||
["Lung Cancer", "Lung Cancer"]
|
||||
],
|
||||
"value": [],
|
||||
"label": "Disease to Scan For",
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "checkboxgroup",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ListStringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": ["Covid"],
|
||||
"serialized": ["Covid"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 103,
|
||||
"type": "tabs",
|
||||
"props": {
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 104,
|
||||
"type": "tabitem",
|
||||
"props": {
|
||||
"label": "X-ray",
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 105,
|
||||
"type": "row",
|
||||
"props": {
|
||||
"type": "row",
|
||||
"variant": "default",
|
||||
"equal_height": true,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 106,
|
||||
"type": "image",
|
||||
"props": {
|
||||
"image_mode": "RGB",
|
||||
"source": "upload",
|
||||
"tool": "editor",
|
||||
"streaming": false,
|
||||
"mirror_webcam": true,
|
||||
"brush_color": "#000000",
|
||||
"mask_opacity": 0.7,
|
||||
"selectable": false,
|
||||
"show_share_button": false,
|
||||
"show_download_button": true,
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "image",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ImgSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string",
|
||||
"description": "base64 representation of an image"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOz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IiKUUEGkMEC/PJHgxw0xH74yx/3XnaYRJgMB8obxQW6kL9QYEJ0FIFgByfIL7/IQAlvQwEpnAC7DtLNJCKUoO/w45c44GwCXiAFB/OXAATQryUxdN4LfFiwgjCNYg+kYMIEFkCKDs6PKAIJouyGWMS1FSKJOMRB/BoIxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==",
|
||||
"serialized": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 107,
|
||||
"type": "json",
|
||||
"props": {
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "json",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "JSONSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": {},
|
||||
"description": "any valid json"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
},
|
||||
"serialized": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 108,
|
||||
"type": "button",
|
||||
"props": {
|
||||
"value": "Run",
|
||||
"variant": "secondary",
|
||||
"interactive": true,
|
||||
"name": "button",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 109,
|
||||
"type": "tabitem",
|
||||
"props": {
|
||||
"label": "CT Scan",
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 110,
|
||||
"type": "row",
|
||||
"props": {
|
||||
"type": "row",
|
||||
"variant": "default",
|
||||
"equal_height": true,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 111,
|
||||
"type": "image",
|
||||
"props": {
|
||||
"image_mode": "RGB",
|
||||
"source": "upload",
|
||||
"tool": "editor",
|
||||
"streaming": false,
|
||||
"mirror_webcam": true,
|
||||
"brush_color": "#000000",
|
||||
"mask_opacity": 0.7,
|
||||
"selectable": false,
|
||||
"show_share_button": false,
|
||||
"show_download_button": true,
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "image",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ImgSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string",
|
||||
"description": "base64 representation of an image"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJCPny78lzYLgjAJ8vAP9fX/+MjMUcAN8zM/9wcM8ZGcATEL+QePdZWf/29uc/P9cmJu9MTDImIN+/r7+/vz8/P8VNQGNugV8AAF9fX8swMNgTAFlDOICAgPNSUnNWSMQ5MBAQEJE3QPIGAM9AQMqGcG9vb6MhJsEdGM8vLx8fH98AANIWAMuQeL8fABkTEPPQ0OM5OSYdGFl5jo+Pj/+pqcsTE78wMFNGQLYmID4dGPvd3UBAQJmTkP+8vH9QUK+vr8ZWSHpzcJMmILdwcLOGcHRQUHxwcK9PT9DQ0O/v70w5MLypoG8wKOuwsP/g4P/Q0IcwKEswKMl8aJ9fX2xjdOtGRs/Pz+Dg4GImIP8g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Uc210hs35nCyJ58fgmIKX5RQGOZowxaZwYA+JaoKQwswGijBV4C6SiTUmpphMspJx9unX4KaimjDv9aaXOEBteBqmuuxgEHoLX6Kqx+yXqqBANsgCtit4FWQAEkrNbpq7HSOmtwag5w57GrmlJBASEU18ADjUYb3ADTinIttsgSB1oJFfA63bduimuqKB1keqwUhoCSK374wbujvOSu4QG6UvxBRydcpKsav++Ca6G8A6Pr1x2kVMyHwsVxUALDq/krnrhPSOzXG1lUTIoffqGR7Goi2MAxbv6O2kEG56I7CSlRsEFKFVyovDJoIRTg7sugNRDGqCJzJgcKE0ywc0ELm6KBCCJo8DIPFeCWNGcyqNFE06ToAfV0HBRgxsvLThHn1oddQMrXj5DyAQgjEHSAJMWZwS3HPxT/QMbabI/iBCliMLEJKX2EEkomBAUCxRi42VDADxyTYDVogV+wSChqmKxEKCDAYFDFj4OmwbY7bDGdBhtrnTQYOigeChUmc1K3QTnAUfEgGFgAWt88hKA6aCRIXhxnQ1yg3BCayK44EWdkUQcBByEQChFXfCB776aQsG0BIlQgQgE8qO26X1h8cEUep8ngRBnOy74E9QgRgEAC8SvOfQkh7FDBDmS43PmGoIiKUUEGkMEC/PJHgxw0xH74yx/3XnaYRJgMB8obxQW6kL9QYEJ0FIFgByfIL7/IQAlvQwEpnAC7DtLNJCKUoO/w45c44GwCXiAFB/OXAATQryUxdN4LfFiwgjCNYg+kYMIEFkCKDs6PKAIJouyGWMS1FSKJOMRB/BoIxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==",
|
||||
"serialized": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 112,
|
||||
"type": "json",
|
||||
"props": {
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "json",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "JSONSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": {},
|
||||
"description": "any valid json"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
},
|
||||
"serialized": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 113,
|
||||
"type": "button",
|
||||
"props": {
|
||||
"value": "Run",
|
||||
"variant": "secondary",
|
||||
"interactive": true,
|
||||
"name": "button",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 114,
|
||||
"type": "textbox",
|
||||
"props": {
|
||||
"lines": 1,
|
||||
"max_lines": 20,
|
||||
"value": "",
|
||||
"type": "text",
|
||||
"autofocus": false,
|
||||
"show_copy_button": false,
|
||||
"container": true,
|
||||
"rtl": false,
|
||||
"show_label": true,
|
||||
"min_width": 160,
|
||||
"name": "textbox",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 115,
|
||||
"type": "form",
|
||||
"props": {
|
||||
"type": "form",
|
||||
"scale": 0,
|
||||
"min_width": 0,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 116,
|
||||
"type": "form",
|
||||
"props": {
|
||||
"type": "form",
|
||||
"scale": 0,
|
||||
"min_width": 0,
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"css": null,
|
||||
"title": "Gradio",
|
||||
"space_id": null,
|
||||
"enable_queue": null,
|
||||
"show_error": true,
|
||||
"show_api": true,
|
||||
"is_colab": false,
|
||||
"stylesheets": [
|
||||
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap",
|
||||
"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
|
||||
],
|
||||
"theme": "default",
|
||||
"layout": {
|
||||
"id": 100,
|
||||
"children": [
|
||||
{
|
||||
"id": 101
|
||||
},
|
||||
{
|
||||
"id": 115,
|
||||
"children": [
|
||||
{
|
||||
"id": 102
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 103,
|
||||
"children": [
|
||||
{
|
||||
"id": 104,
|
||||
"children": [
|
||||
{
|
||||
"id": 105,
|
||||
"children": [
|
||||
{
|
||||
"id": 106
|
||||
},
|
||||
{
|
||||
"id": 107
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 108
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 109,
|
||||
"children": [
|
||||
{
|
||||
"id": 110,
|
||||
"children": [
|
||||
{
|
||||
"id": 111
|
||||
},
|
||||
{
|
||||
"id": 112
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 113
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 116,
|
||||
"children": [
|
||||
{
|
||||
"id": 114
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
"targets": [108],
|
||||
"trigger": "click",
|
||||
"inputs": [102, 106],
|
||||
"outputs": [107],
|
||||
"backend_fn": true,
|
||||
"js": null,
|
||||
"queue": null,
|
||||
"api_name": null,
|
||||
"scroll_to_output": false,
|
||||
"show_progress": "full",
|
||||
"every": null,
|
||||
"batch": false,
|
||||
"max_batch_size": 4,
|
||||
"cancels": [],
|
||||
"types": {
|
||||
"continuous": false,
|
||||
"generator": false
|
||||
},
|
||||
"collects_event_data": false,
|
||||
"trigger_after": null,
|
||||
"trigger_only_on_success": false
|
||||
},
|
||||
{
|
||||
"targets": [113],
|
||||
"trigger": "click",
|
||||
"inputs": [102, 111],
|
||||
"outputs": [112],
|
||||
"backend_fn": true,
|
||||
"js": null,
|
||||
"queue": null,
|
||||
"api_name": null,
|
||||
"scroll_to_output": false,
|
||||
"show_progress": "full",
|
||||
"every": null,
|
||||
"batch": false,
|
||||
"max_batch_size": 4,
|
||||
"cancels": [],
|
||||
"types": {
|
||||
"continuous": false,
|
||||
"generator": false
|
||||
},
|
||||
"collects_event_data": false,
|
||||
"trigger_after": null,
|
||||
"trigger_only_on_success": false
|
||||
}
|
||||
]
|
||||
}
|
||||
"version": "3.41.2",
|
||||
"mode": "blocks",
|
||||
"dev_mode": true,
|
||||
"analytics_enabled": true,
|
||||
"components": [
|
||||
{
|
||||
"id": 101,
|
||||
"type": "markdown",
|
||||
"props": {
|
||||
"value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",
|
||||
"rtl": false,
|
||||
"latex_delimiters": [
|
||||
{
|
||||
"left": "$",
|
||||
"right": "$",
|
||||
"display": false
|
||||
}
|
||||
],
|
||||
"sanitize_html": true,
|
||||
"name": "markdown",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 102,
|
||||
"type": "checkboxgroup",
|
||||
"props": {
|
||||
"choices": [
|
||||
[
|
||||
"Covid",
|
||||
"Covid"
|
||||
],
|
||||
[
|
||||
"Malaria",
|
||||
"Malaria"
|
||||
],
|
||||
[
|
||||
"Lung Cancer",
|
||||
"Lung Cancer"
|
||||
]
|
||||
],
|
||||
"value": [],
|
||||
"label": "Disease to Scan For",
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "checkboxgroup",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ListStringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": [
|
||||
"Covid"
|
||||
],
|
||||
"serialized": [
|
||||
"Covid"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 103,
|
||||
"type": "tabs",
|
||||
"props": {
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 104,
|
||||
"type": "tabitem",
|
||||
"props": {
|
||||
"label": "X-ray",
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 105,
|
||||
"type": "row",
|
||||
"props": {
|
||||
"type": "row",
|
||||
"variant": "default",
|
||||
"equal_height": true,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 106,
|
||||
"type": "image",
|
||||
"props": {
|
||||
"image_mode": "RGB",
|
||||
"source": "upload",
|
||||
"tool": "editor",
|
||||
"streaming": false,
|
||||
"mirror_webcam": true,
|
||||
"brush_color": "#000000",
|
||||
"mask_opacity": 0.7,
|
||||
"selectable": false,
|
||||
"show_share_button": false,
|
||||
"show_download_button": true,
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "image",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ImgSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string",
|
||||
"description": "base64 representation of an image"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+f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ByEQChFXfCB776aQsG0BIlQgQgE8qO26X1h8cEUep8ngRBnOy74E9QgRgEAC8SvOfQkh7FDBDmS43PmGoIiKUUEGkMEC/PJHgxw0xH74yx/3XnaYRJgMB8obxQW6kL9QYEJ0FIFgByfIL7/IQAlvQwEpnAC7DtLNJCKUoO/w45c44GwCXiAFB/OXAATQryUxdN4LfFiwgjCNYg+kYMIEFkCKDs6PKAIJouyGWMS1FSKJOMRB/BoIxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==",
|
||||
"serialized": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 107,
|
||||
"type": "json",
|
||||
"props": {
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "json",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "JSONSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": {},
|
||||
"description": "any valid json"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
},
|
||||
"serialized": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 108,
|
||||
"type": "button",
|
||||
"props": {
|
||||
"value": "Run",
|
||||
"variant": "secondary",
|
||||
"interactive": true,
|
||||
"name": "button",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 109,
|
||||
"type": "tabitem",
|
||||
"props": {
|
||||
"label": "CT Scan",
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 110,
|
||||
"type": "row",
|
||||
"props": {
|
||||
"type": "row",
|
||||
"variant": "default",
|
||||
"equal_height": true,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 111,
|
||||
"type": "image",
|
||||
"props": {
|
||||
"image_mode": "RGB",
|
||||
"source": "upload",
|
||||
"tool": "editor",
|
||||
"streaming": false,
|
||||
"mirror_webcam": true,
|
||||
"brush_color": "#000000",
|
||||
"mask_opacity": 0.7,
|
||||
"selectable": false,
|
||||
"show_share_button": false,
|
||||
"show_download_button": true,
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "image",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "ImgSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string",
|
||||
"description": "base64 representation of an image"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJCPny78lzYLgjAJ8vAP9fX/+MjMUcAN8zM/9wcM8ZGcATEL+QePdZWf/29uc/P9cmJu9MTDImIN+/r7+/vz8/P8VNQGNugV8AAF9fX8swMNgTAFlDOICAgPNSUnNWSMQ5MBAQEJE3QPIGAM9AQMqGcG9vb6MhJsEdGM8vLx8fH98AANIWAMuQeL8fABkTEPPQ0OM5OSYdGFl5jo+Pj/+pqcsTE78wMFNGQLYmID4dGPvd3UBAQJmTkP+8vH9QUK+vr8ZWSHpzcJMmILdwcLOGcHRQUHxwcK9P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gCSJEZ7YgRYUNrkji9P55sF/ogxw5ZkSqIDaZBV6aSGYq/lGZplndkckZ98xoICbTcIJGQAZcNmdmUc210hs35nCyJ58fgmIKX5RQGOZowxaZwYA+JaoKQwswGijBV4C6SiTUmpphMspJx9unX4KaimjDv9aaXOEBteBqmuuxgEHoLX6Kqx+yXqqBANsgCtit4FWQAEkrNbpq7HSOmtwag5w57GrmlJBASEU18ADjUYb3ADTinIttsgSB1oJFfA63bduimuqKB1keqwUhoCSK374wbujvOSu4QG6UvxBRydcpKsav++Ca6G8A6Pr1x2kVMyHwsVxUALDq/krnrhPSOzXG1lUTIoffqGR7Goi2MAxbv6O2kEG56I7CSlRsEFKFVyovDJoIRTg7sugNRDGqCJzJgcKE0ywc0ELm6KBCCJo8DIPFeCWNGcyqNFE06ToAfV0HBRgxsvLThHn1oddQMrXj5DyAQgjEHSAJMWZwS3HPxT/QMbabI/iBCliMLEJKX2EEkomBAUCxRi42VDADxyTYDVogV+wSChqmKxEKCDAYFDFj4OmwbY7bDGdBhtrnTQYOigeChUmc1K3QTnAUfEgGFgAWt88hKA6aCRIXhxnQ1yg3BCayK44EWdkUQcBByEQChFXfCB776aQsG0BIlQgQgE8qO26X1h8cEUep8ngRBnOy74E9QgRgEAC8SvOfQkh7FDBDmS43PmGoIiKUUEGkMEC/PJHgxw0xH74yx/3XnaYRJgMB8obxQW6kL9QYEJ0FIFgByfIL7/IQAlvQwEpnAC7DtLNJCKUoO/w45c44GwCXiAFB/OXAATQryUxdN4LfFiwgjCNYg+kYMIEFkCKDs6PKAIJouyGWMS1FSKJOMRB/BoIxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==",
|
||||
"serialized": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 112,
|
||||
"type": "json",
|
||||
"props": {
|
||||
"show_label": true,
|
||||
"container": true,
|
||||
"min_width": 160,
|
||||
"name": "json",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "JSONSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": {},
|
||||
"description": "any valid json"
|
||||
},
|
||||
"serialized_info": true
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
},
|
||||
"serialized": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 113,
|
||||
"type": "button",
|
||||
"props": {
|
||||
"value": "Run",
|
||||
"variant": "secondary",
|
||||
"interactive": true,
|
||||
"name": "button",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 114,
|
||||
"type": "textbox",
|
||||
"props": {
|
||||
"lines": 1,
|
||||
"max_lines": 20,
|
||||
"value": "",
|
||||
"type": "text",
|
||||
"autofocus": false,
|
||||
"show_copy_button": false,
|
||||
"container": true,
|
||||
"rtl": false,
|
||||
"show_label": true,
|
||||
"min_width": 160,
|
||||
"name": "textbox",
|
||||
"visible": true
|
||||
},
|
||||
"serializer": "StringSerializable",
|
||||
"api_info": {
|
||||
"info": {
|
||||
"type": "string"
|
||||
},
|
||||
"serialized_info": false
|
||||
},
|
||||
"example_inputs": {
|
||||
"raw": "Howdy!",
|
||||
"serialized": "Howdy!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 115,
|
||||
"type": "form",
|
||||
"props": {
|
||||
"type": "form",
|
||||
"scale": 0,
|
||||
"min_width": 0,
|
||||
"visible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 116,
|
||||
"type": "form",
|
||||
"props": {
|
||||
"type": "form",
|
||||
"scale": 0,
|
||||
"min_width": 0,
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"css": null,
|
||||
"title": "Gradio",
|
||||
"space_id": null,
|
||||
"enable_queue": null,
|
||||
"show_error": true,
|
||||
"show_api": true,
|
||||
"is_colab": false,
|
||||
"stylesheets": [
|
||||
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap",
|
||||
"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"
|
||||
],
|
||||
"theme": "default",
|
||||
"layout": {
|
||||
"id": 100,
|
||||
"children": [
|
||||
{
|
||||
"id": 101
|
||||
},
|
||||
{
|
||||
"id": 115,
|
||||
"children": [
|
||||
{
|
||||
"id": 102
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 103,
|
||||
"children": [
|
||||
{
|
||||
"id": 104,
|
||||
"children": [
|
||||
{
|
||||
"id": 105,
|
||||
"children": [
|
||||
{
|
||||
"id": 106
|
||||
},
|
||||
{
|
||||
"id": 107
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 108
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 109,
|
||||
"children": [
|
||||
{
|
||||
"id": 110,
|
||||
"children": [
|
||||
{
|
||||
"id": 111
|
||||
},
|
||||
{
|
||||
"id": 112
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 113
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 116,
|
||||
"children": [
|
||||
{
|
||||
"id": 114
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependencies": [
|
||||
{
|
||||
"targets": [
|
||||
108
|
||||
],
|
||||
"trigger": "click",
|
||||
"inputs": [
|
||||
102,
|
||||
106
|
||||
],
|
||||
"outputs": [
|
||||
107
|
||||
],
|
||||
"backend_fn": true,
|
||||
"js": null,
|
||||
"queue": null,
|
||||
"api_name": null,
|
||||
"scroll_to_output": false,
|
||||
"show_progress": "full",
|
||||
"every": null,
|
||||
"batch": false,
|
||||
"max_batch_size": 4,
|
||||
"cancels": [],
|
||||
"types": {
|
||||
"continuous": false,
|
||||
"generator": false
|
||||
},
|
||||
"collects_event_data": false,
|
||||
"trigger_after": null,
|
||||
"trigger_only_on_success": false
|
||||
},
|
||||
{
|
||||
"targets": [
|
||||
113
|
||||
],
|
||||
"trigger": "click",
|
||||
"inputs": [
|
||||
102,
|
||||
111
|
||||
],
|
||||
"outputs": [
|
||||
112
|
||||
],
|
||||
"backend_fn": true,
|
||||
"js": null,
|
||||
"queue": null,
|
||||
"api_name": null,
|
||||
"scroll_to_output": false,
|
||||
"show_progress": "full",
|
||||
"every": null,
|
||||
"batch": false,
|
||||
"max_batch_size": 4,
|
||||
"cancels": [],
|
||||
"types": {
|
||||
"continuous": false,
|
||||
"generator": false
|
||||
},
|
||||
"collects_event_data": false,
|
||||
"trigger_after": null,
|
||||
"trigger_only_on_success": false
|
||||
}
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user