How to Solve NameError: name 'HTMLResponse' is not defined -- fastapi
Solution: Import the 'HTMLResponse' module
# Add the following line to the top of your code
from fastapi.responses import HTMLResponse
For more information:
fastapi HTMLResponse