DEV Community

Discussion on: Use FastAPI to create a desktop application (no Electronjs)

Collapse
 
abulka profile image
Andy Bulka

I'm getting the error AttributeError: 'FastAPI' object has no attribute 'after_request' whether I run python main.py or python gui.py.

I have flaskwebgui, flask and fastapi installed ok.

Had to change the startup in both files to FlaskUI(app, start_server='fastapi', width=600, height=500).run()