mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
Merge pull request #600 from gradio-app/formatting-fix
formatting fixes
This commit is contained in:
commit
6f8afa0eb5
@ -30,7 +30,9 @@ class Parallel(gradio.Interface):
|
|||||||
}
|
}
|
||||||
kwargs.update(options)
|
kwargs.update(options)
|
||||||
super().__init__(**kwargs)
|
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):
|
class Series(gradio.Interface):
|
||||||
@ -81,4 +83,6 @@ class Series(gradio.Interface):
|
|||||||
}
|
}
|
||||||
kwargs.update(options)
|
kwargs.update(options)
|
||||||
super().__init__(**kwargs)
|
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)
|
return FileResponse(static_file)
|
||||||
raise HTTPException(status_code=404, detail="Static file not found")
|
raise HTTPException(status_code=404, detail="Static file not found")
|
||||||
|
|
||||||
|
|
||||||
@app.get("/assets/{path:path}")
|
@app.get("/assets/{path:path}")
|
||||||
def build_resource(path: str):
|
def build_resource(path: str):
|
||||||
if app.interface.share:
|
if app.interface.share:
|
||||||
|
Loading…
Reference in New Issue
Block a user