mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
Fix API info bug (#9700)
* copy * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
parent
2ade59b95d
commit
2932e067d5
5
.changeset/olive-lights-hide.md
Normal file
5
.changeset/olive-lights-hide.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fix API info bug
|
@ -576,7 +576,8 @@ class App(FastAPI):
|
||||
app.all_app_info = app.get_blocks().get_api_info(all_endpoints=True)
|
||||
return app.all_app_info
|
||||
if not app.api_info:
|
||||
api_info = cast(dict[str, Any], app.get_blocks().get_api_info())
|
||||
api_info = utils.safe_deepcopy(app.get_blocks().get_api_info())
|
||||
api_info = cast(dict[str, Any], api_info)
|
||||
api_info = route_utils.update_example_values_to_use_public_url(api_info)
|
||||
app.api_info = api_info
|
||||
return app.api_info
|
||||
|
Loading…
x
Reference in New Issue
Block a user