kyunghei / Timeless-Tales

A web application utilizing AI to create custom choose-your-own-adventure stories with dynamic choices/outcomes and relevant artwork.
2 stars 0 forks source link

Context File Creation #34

Closed ShinyMyst closed 5 months ago

ShinyMyst commented 5 months ago

I've split context into its own file for two reasons.

1.) Hopefully easier to tweak variables. 2.) More importantly, removes necessity of calling it as a global.

I tweaked main just enough to get through linting. It will likely need some repositioning once Flask is introduced so did not put too much concern into it at this time.

NOTE - This will work fine with a single instance of the story, but I am not sure if this is the best solution if we'll theoretically have multiple stories running in tandem. We might need to create sessions or something on the back end? I think that's a future problem.