From 085910c75734a91dd3bf67712144e3971afcb086 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Fri, 11 Feb 2022 11:46:11 -0500 Subject: [PATCH] formatting fixes --- gradio/mix.py | 8 ++++++-- gradio/routes.py | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gradio/mix.py b/gradio/mix.py index bb1650c93d..4da1be3749 100644 --- a/gradio/mix.py +++ b/gradio/mix.py @@ -30,7 +30,9 @@ class Parallel(gradio.Interface): } kwargs.update(options) super().__init__(**kwargs) - self.api_mode = interfaces[0].api_mode # TODO(abidlabs): make api_mode a per-function attribute + self.api_mode = interfaces[ + 0 + ].api_mode # TODO(abidlabs): make api_mode a per-function attribute class Series(gradio.Interface): @@ -81,4 +83,6 @@ class Series(gradio.Interface): } kwargs.update(options) super().__init__(**kwargs) - self.api_mode = interfaces[0].api_mode # TODO(abidlabs): make api_mode a per-function attribute + self.api_mode = interfaces[ + 0 + ].api_mode # TODO(abidlabs): make api_mode a per-function attribute diff --git a/gradio/routes.py b/gradio/routes.py index e2350b61c8..4080f74115 100644 --- a/gradio/routes.py +++ b/gradio/routes.py @@ -129,6 +129,7 @@ def static_resource(path: str): return FileResponse(static_file) raise HTTPException(status_code=404, detail="Static file not found") + @app.get("/assets/{path:path}") def build_resource(path: str): if app.interface.share: