mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
formatting fixes
This commit is contained in:
parent
80330ccd1e
commit
085910c757
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user