Spaces:
Sleeping
Sleeping
File size: 328 Bytes
98dceee |
1 2 3 4 5 6 7 8 9 10 11 12 |
from fastapi.templating import Jinja2Templates
from fastapi.requests import Request
from project.bot import bot_router
template = Jinja2Templates(directory='project/bot/templates')
@bot_router.get('/', name='voice')
async def voice(request: Request):
return template.TemplateResponse("voice.html", {'request': request})
|