mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
Broken examples hotfix (#1412)
* fix * changes * changes * changes * changes
This commit is contained in:
parent
40ed4df9ad
commit
988f42c4b2
@ -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
|
||||
|
@ -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
|
||||
|
@ -1 +1 @@
|
||||
3.0.8
|
||||
3.0.9
|
@ -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
|
||||
|
||||
|
2
setup.py
2
setup.py
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user