mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
removed logging issue
This commit is contained in:
@@ -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: <pre>{}</pre>
|
||||
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: <pre>{}</pre>
|
||||
See logs for full stacktrace.
|
||||
""".format(e), 400
|
||||
|
||||
|
||||
@app.route('/generate', methods=['POST'])
|
||||
|
||||
+1
-1
@@ -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")
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user