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:
Abubakar Abid 2024-11-21 15:25:34 -08:00 committed by GitHub
parent 4aa0e887a6
commit 74f22d57a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
"gradio": patch
---
fix:Fix Starlette templating deprecation warning

View File

@ -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,
},