diff --git a/main.py b/main.py index ebe83d9..4444dc8 100644 --- a/main.py +++ b/main.py @@ -32,22 +32,6 @@ def root(): # For the sake of example, use static information to inflate the template. # This will be replaced with real information in later steps. return render_template('index.html') - -@app.errorhandler(500) -def server_error(e): - logging.exception('An error occurred during a request.') - return """ - An internal error occurred:
{}
- See logs for full stacktrace.
- """.format(e), 500
-
-@app.errorhandler(400)
-def server_error(e):
- logging.exception('An error occurred during a request.')
- return """
- An internal error occurred: {}
- See logs for full stacktrace.
- """.format(e), 400
@app.route('/generate', methods=['POST'])
diff --git a/static/script.js b/static/script.js
index 26b7ac6..d553865 100644
--- a/static/script.js
+++ b/static/script.js
@@ -20,7 +20,7 @@ var StoryTracker = {
getFirstStory:function(){
console.log("Requesting first story")
Typer.appendToText(initial_prompt)
- StoryTracker.requestStory(initial_prompt, "")
+ StoryTracker.requestStory(initial_prompt, "None")
},