<s> from flask import Flask <EOL> from database import db_session , init_db <EOL> from flask_graphql import GraphQL <EOL> from schema import schema <EOL> app = Flask ( __name__ ) <EOL> app . debug = True <EOL> default_query = '''<STR_LIT>''' . strip ( ) <EOL> GraphQL ( app , schema = schema , default_query = default_query ) <EOL> @ app . teardown_appcontext <EOL> def shutdown_session ( exception = None ) : <EOL> db_session . remove ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> init_db ( ) <EOL> app . run ( ) </s>
