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 (