Skip to content

Commit

Permalink
Fix Starlette templating deprecation warning (gradio-app#10011)
Browse files Browse the repository at this point in the history
* fix deprc

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>
  • Loading branch information
abidlabs and gradio-pr-bot authored Nov 21, 2024
1 parent 4aa0e88 commit 74f22d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-bananas-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": patch
---

fix:Fix Starlette templating deprecation warning
6 changes: 3 additions & 3 deletions gradio/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,9 @@ def main(request: fastapi.Request, user: str = Depends(get_current_user)):
)
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,
},
Expand Down

0 comments on commit 74f22d5

Please sign in to comment.