mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
Fix Starlette templating deprecation warning (#10011)
* fix deprc * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
4aa0e887a6
commit
74f22d57a1
5
.changeset/silly-bananas-run.md
Normal file
5
.changeset/silly-bananas-run.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fix Starlette templating deprecation warning
|
@ -570,9 +570,9 @@ class App(FastAPI):
|
||||
)
|
||||
gradio_api_info = api_info(request)
|
||||
return templates.TemplateResponse(
|
||||
template,
|
||||
{
|
||||
"request": request,
|
||||
request=request,
|
||||
name=template,
|
||||
context={
|
||||
"config": config,
|
||||
"gradio_api_info": gradio_api_info,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user