Merge pull request #600 from gradio-app/formatting-fix

formatting fixes
This commit is contained in:
Abubakar Abid 2022-02-11 11:46:41 -05:00 committed by GitHub
commit 6f8afa0eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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: