formatting fixes

This commit is contained in:
Abubakar Abid 2022-02-11 11:46:11 -05:00
parent 80330ccd1e
commit 085910c757
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: