Dash app within Flask

I want to implement a simple flask app containing only 2 pages:

  1. The first page containing a form that takes input from user.
  2. Using that input, I create a query and then get data from datastore, create a graph and show it to the user on the second page.

I am not sure how to pass the input from page 1 to page 2.

If anyone could has some input on how to do this that would be very helpful