config hotfix and v. 2.9b23 (#1158)

* config fix

* updated PyPi version to 2.9b23
This commit is contained in:
Abubakar Abid 2022-05-04 02:13:43 -07:00 committed by GitHub
parent ad1fffd496
commit 6a34a67b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: gradio
Version: 2.9b21
Version: 2.9b23
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

View File

@ -274,7 +274,6 @@ class Blocks(BlockContext):
self.enable_queue = True
else:
self.enable_queue = enable_queue or False
self.config = self.get_config_file()
def render(self):
if Context.root_block is not None:
@ -387,6 +386,7 @@ class Blocks(BlockContext):
Context.root_block = None
else:
self.parent.children.extend(self.children)
self.config = self.get_config_file()
def load(
self, fn: Callable, inputs: List[Component], outputs: List[Component]
@ -461,6 +461,7 @@ class Blocks(BlockContext):
local_url (str): Locally accessible link to the demo
share_url (str): Publicly accessible link to the demo (if share=True, otherwise None)
"""
self.config = self.get_config_file()
if (
auth
and not callable(auth)

View File

@ -1 +1 @@
2.9b21
2.9b23

View File

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