mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
fix issue#1353 (#1457)
* fix issue#1353 * change logic * changes Co-authored-by: Ali Abid <aabid94@gmail.com>
This commit is contained in:
parent
d8eb957534
commit
f6414d3c33
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.1
|
Metadata-Version: 2.1
|
||||||
Name: gradio
|
Name: gradio
|
||||||
Version: 3.0.11
|
Version: 3.0.12
|
||||||
Summary: Python library for easily interacting with trained machine learning models
|
Summary: Python library for easily interacting with trained machine learning models
|
||||||
Home-page: https://github.com/gradio-app/gradio
|
Home-page: https://github.com/gradio-app/gradio
|
||||||
Author: Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq, Pete Allen, Ömer Faruk Özdemir
|
Author: Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq, Pete Allen, Ömer Faruk Özdemir
|
||||||
|
@ -1 +1 @@
|
|||||||
3.0.11
|
3.0.12
|
2
setup.py
2
setup.py
@ -9,7 +9,7 @@ long_description = (this_directory / "README.md").read_text(encoding='utf8')
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="gradio",
|
name="gradio",
|
||||||
version="3.0.11",
|
version="3.0.12",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
description="Python library for easily interacting with trained machine learning models",
|
description="Python library for easily interacting with trained machine learning models",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
|
@ -68,7 +68,6 @@ export const fn = async (
|
|||||||
) => {
|
) => {
|
||||||
const fn_index = payload.fn_index;
|
const fn_index = payload.fn_index;
|
||||||
|
|
||||||
console.log(">", frontend_fn);
|
|
||||||
if (frontend_fn !== undefined) {
|
if (frontend_fn !== undefined) {
|
||||||
payload.data = await frontend_fn(payload.data.concat(output_data));
|
payload.data = await frontend_fn(payload.data.concat(output_data));
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
const dispatch = createEventDispatcher<{ change: boolean }>();
|
const dispatch = createEventDispatcher<{ change: boolean }>();
|
||||||
|
|
||||||
function handle_change() {
|
function handle_change(evt: Event) {
|
||||||
dispatch("change", !value);
|
value = evt.target?.checked;
|
||||||
value = !value;
|
dispatch("change", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
$: ({ rounded, border } = get_styles(style, ["rounded", "border"]));
|
$: ({ rounded, border } = get_styles(style, ["rounded", "border"]));
|
||||||
@ -25,7 +25,7 @@
|
|||||||
class="flex items-center text-gray-700 text-sm space-x-2 rounded-lg cursor-pointer dark:bg-transparent "
|
class="flex items-center text-gray-700 text-sm space-x-2 rounded-lg cursor-pointer dark:bg-transparent "
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
bind:checked={value}
|
on:change={(evt) => handle_change(evt)}
|
||||||
{disabled}
|
{disabled}
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="test"
|
name="test"
|
||||||
|
Loading…
Reference in New Issue
Block a user