Broken examples hotfix (#1412)

* fix

* changes

* changes

* changes

* changes
This commit is contained in:
aliabid94 2022-05-28 22:01:13 -07:00 committed by GitHub
parent 40ed4df9ad
commit 988f42c4b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: gradio
Version: 3.0.8
Version: 3.0.9
Summary: Python library for easily interacting with trained machine learning models
Home-page: https://github.com/gradio-app/gradio
Author: Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq, Pete Allen, Ömer Faruk Özdemir

View File

@ -3580,7 +3580,9 @@ class Dataset(Clickable, Component):
visible (bool): If False, component will be hidden.
"""
Component.__init__(self, visible=visible, elem_id=elem_id, **kwargs)
self.components = [get_component_instance(c).unrender() for c in components]
self.components = (
components # [get_component_instance(c).unrender() for c in components]
)
self.type = type
self.headers = headers or [c.label for c in self.components]
self.samples = samples

View File

@ -1 +1 @@
3.0.8
3.0.9

View File

@ -6,10 +6,10 @@ else
echo "Uploading to pypi"
set -e
git pull origin main
old_version=$(grep -Po "(?<=version=\")[^\"]+(?=\")" setup.py)
old_version=$(ggrep -Po "(?<=version=\")[^\"]+(?=\")" setup.py)
echo "Current version is $old_version. New version?"
read new_version
sed -i "s/version=\"$old_version\"/version=\"$new_version\"/g" setup.py
gsed -i "s/version=\"$old_version\"/version=\"$new_version\"/g" setup.py
echo -n $new_version > gradio/version.txt
rm -rf gradio/templates/frontend
@ -26,7 +26,7 @@ else
rm -r build/*
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
git add -A
git commit -m "updated PyPi version to $new_version"
# git add -A
# git commit -m "updated PyPi version to $new_version"
fi

View File

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