Hotfixes for course demos (#1222)

* images have change() events

* fixed update issue

* updated version to 2.9b50
This commit is contained in:
Abubakar Abid 2022-05-11 19:30:28 -07:00 committed by GitHub
parent c50a2b021a
commit 897d396a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: gradio
Version: 2.9b26
Version: 2.9b50
Summary: Python library for easily interacting with trained machine learning models
Home-page: https://github.com/gradio-app/gradio-UI
Author: Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq, Pete Allen, Ömer Faruk Özdemir
@ -10,7 +10,7 @@ Keywords: machine learning,visualization,reproducibility
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE
[![CircleCI](https://circleci.com/gh/gradio-app/gradio.svg?style=svg)](https://circleci.com/gh/gradio-app/gradio) [![PyPI version](https://badge.fury.io/py/gradio.svg)](https://badge.fury.io/py/gradio) [![codecov](https://codecov.io/gh/gradio-app/gradio/branch/master/graph/badge.svg?token=NNVPX9KEGS)](https://codecov.io/gh/gradio-app/gradio) [![PyPI - Downloads](https://img.shields.io/pypi/dm/gradio)](https://pypi.org/project/gradio/) [![Twitter Follow](https://img.shields.io/twitter/follow/gradio.svg?style=social&label=Follow)](https://twitter.com/gradio)
# Welcome to Gradio

View File

@ -345,7 +345,7 @@ class Blocks(BlockContext):
prediction_value = predictions[i]
if type(
prediction_value
) is dict and "update" in prediction_value.get("__type__"):
) is dict and "update" in prediction_value.get("__type__", ""):
if prediction_value["__type__"] == "generic_update":
del prediction_value["__type__"]
prediction_value = block.__class__.update(

View File

@ -1325,7 +1325,7 @@ class Dropdown(Radio):
)
class Image(Editable, Clearable, IOComponent):
class Image(Editable, Clearable, Changeable, IOComponent):
"""
Component creates an image component with input and output capabilities.

View File

@ -59,8 +59,8 @@
rel="stylesheet"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
<script type="module" crossorigin src="./assets/index.0064653a.js"></script>
<link rel="stylesheet" href="./assets/index.bac7eb5e.css">
<script type="module" crossorigin src="./assets/index.43a672aa.js"></script>
<link rel="stylesheet" href="./assets/index.0368fdc3.css">
</head>
<body

View File

@ -1 +1 @@
2.9b33
2.9b50

View File

@ -9,7 +9,7 @@ long_description = (this_directory / "README.md").read_text()
setup(
name="gradio",
version="2.9b26",
version="2.9b50",
include_package_data=True,
description="Python library for easily interacting with trained machine learning models",
long_description=long_description,