From ed0095367f807c39a7e2fa807e07f93da8944a6e Mon Sep 17 00:00:00 2001 From: Ali Abid Date: Wed, 11 Aug 2021 18:26:27 +0000 Subject: [PATCH] updated PyPi version --- frontend/src/gradio.jsx | 36 ++++++++++++---------------- frontend/src/themes/compact.scss | 9 +++++++ frontend/src/themes/defaults.scss | 9 +++++++ frontend/src/themes/huggingface.scss | 9 +++++++ gradio.egg-info/SOURCES.txt | 1 + gradio/frontend/asset-manifest.json | 4 ++-- gradio/frontend/index.html | 2 +- gradio/version.txt | 2 +- setup.py | 2 +- 9 files changed, 48 insertions(+), 26 deletions(-) diff --git a/frontend/src/gradio.jsx b/frontend/src/gradio.jsx index 68464f222e..3f188be13f 100644 --- a/frontend/src/gradio.jsx +++ b/frontend/src/gradio.jsx @@ -60,8 +60,8 @@ export class GradioInterface extends React.Component { process.env.REACT_APP_BACKEND_URL + (this.props.examples_dir === null ? "file" + - this.props.examples_dir + - (this.props.examples_dir.endswith("/") ? "" : "/") + this.props.examples_dir + + (this.props.examples_dir.endswith("/") ? "" : "/") : "file"); } get_default_state = () => { @@ -203,10 +203,10 @@ export class GradioInterface extends React.Component { i < this.props.input_components.length ? input_component_map[this.props.input_components[i].name][1] : output_component_map[ - this.props.output_components[ - i - this.props.input_components.length - ].name - ][1]; + this.props.output_components[ + i - this.props.input_components.length + ].name + ][1]; state_change[i] = ExampleComponent.preprocess( item, this.examples_dir @@ -232,13 +232,7 @@ export class GradioInterface extends React.Component { } return (
-
+
{component.label}; })} {this.props.examples[0].length > - this.props.input_components.length + this.props.input_components.length ? this.props.output_components.map((component, i) => { - return ( - - {component.label} - - ); - }) + return ( + + {component.label} + + ); + }) : false} @@ -450,7 +444,7 @@ class GradioInterfaceExamples extends React.Component { {example_row.map((example_data, j) => { let ExampleComponent = input_component_map[ - this.props.input_components[j].name + this.props.input_components[j].name ][1]; return ( diff --git a/frontend/src/themes/compact.scss b/frontend/src/themes/compact.scss index 725926350a..314e000d63 100644 --- a/frontend/src/themes/compact.scss +++ b/frontend/src/themes/compact.scss @@ -16,6 +16,15 @@ html { .panels { @apply flex flex-wrap justify-center gap-4; } + .panels.unaligned { + @apply flex-col sm:flex-row items-stretch sm:items-start + } + .panels.horizontal { + @apply flex-col sm:flex-row items-stretch; + } + .panels.vertical { + @apply flex-col items-stretch; + } .panel { @apply flex-1; } diff --git a/frontend/src/themes/defaults.scss b/frontend/src/themes/defaults.scss index 10ea19b482..21b6135328 100644 --- a/frontend/src/themes/defaults.scss +++ b/frontend/src/themes/defaults.scss @@ -53,6 +53,15 @@ .panels { @apply flex flex-wrap justify-center gap-4; } + .panels.unaligned { + @apply flex-col sm:flex-row items-stretch sm:items-start + } + .panels.horizontal { + @apply flex-col sm:flex-row items-stretch; + } + .panels.vertical { + @apply flex-col items-stretch; + } .panel { @apply flex-1; } diff --git a/frontend/src/themes/huggingface.scss b/frontend/src/themes/huggingface.scss index 13c61811fa..a5d5ef06ca 100644 --- a/frontend/src/themes/huggingface.scss +++ b/frontend/src/themes/huggingface.scss @@ -12,6 +12,15 @@ .panels { @apply flex flex-wrap justify-center gap-4; } + .panels.unaligned { + @apply flex-col sm:flex-row items-stretch sm:items-start + } + .panels.horizontal { + @apply flex-col sm:flex-row items-stretch; + } + .panels.vertical { + @apply flex-col items-stretch; + } .panel { @apply flex-1; } diff --git a/gradio.egg-info/SOURCES.txt b/gradio.egg-info/SOURCES.txt index 8e4473c810..adf8a2b0b4 100644 --- a/gradio.egg-info/SOURCES.txt +++ b/gradio.egg-info/SOURCES.txt @@ -34,6 +34,7 @@ gradio/frontend/static/bundle.js.LICENSE.txt gradio/frontend/static/bundle.js.map gradio/frontend/static/css/main.1c7a53e3.css gradio/frontend/static/css/main.1c7a53e3.css.map +gradio/frontend/static/css/main.22c25130.css gradio/frontend/static/css/main.2ed025e4.css gradio/frontend/static/css/main.2ed025e4.css.map gradio/frontend/static/css/main.b74df5ce.css diff --git a/gradio/frontend/asset-manifest.json b/gradio/frontend/asset-manifest.json index 8be83e654c..4f2d8aba95 100644 --- a/gradio/frontend/asset-manifest.json +++ b/gradio/frontend/asset-manifest.json @@ -1,6 +1,6 @@ { "files": { - "main.css": "/static/css/main.cb3c60d6.css", + "main.css": "/static/css/main.22c25130.css", "main.js": "/static/bundle.js", "index.html": "/index.html", "static/bundle.js.LICENSE.txt": "/static/bundle.js.LICENSE.txt", @@ -9,7 +9,7 @@ }, "entrypoints": [ "static/bundle.css", - "static/css/main.cb3c60d6.css", + "static/css/main.22c25130.css", "static/bundle.js" ] } \ No newline at end of file diff --git a/gradio/frontend/index.html b/gradio/frontend/index.html index dcd611cf4d..695d6e2f32 100644 --- a/gradio/frontend/index.html +++ b/gradio/frontend/index.html @@ -8,4 +8,4 @@ window.config = {{ config|tojson }}; } catch (e) { window.config = {}; - }Gradio
\ No newline at end of file + }Gradio
\ No newline at end of file diff --git a/gradio/version.txt b/gradio/version.txt index 95d9dc8490..e3d11902be 100644 --- a/gradio/version.txt +++ b/gradio/version.txt @@ -1 +1 @@ -2.2.9a +2.2.9.a2 diff --git a/setup.py b/setup.py index a6e892eaa4..9cb0339d8e 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name='gradio', - version='2.2.9a', + version='2.2.9.a2', include_package_data=True, description='Python library for easily interacting with trained machine learning models', author='Abubakar Abid',