mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
added debugger
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
runtime: python
|
||||
runtime_config:
|
||||
python_version: 3
|
||||
|
||||
instance_class: B8
|
||||
entrypoint: gunicorn -t 120 --log-level debug -b :$PORT main:app
|
||||
entrypoint: gunicorn -t 240 --log-level debug --debug -b :$PORT main:app
|
||||
threadsafe: true
|
||||
env: flex
|
||||
|
||||
|
||||
@@ -19,6 +19,12 @@ import tensorflow as tf
|
||||
from flask import g
|
||||
import pdb
|
||||
|
||||
try:
|
||||
import googleclouddebugger
|
||||
googleclouddebugger.enable()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import json
|
||||
from flask import Flask, render_template, request
|
||||
|
||||
|
||||
@@ -3,3 +3,4 @@ numpy
|
||||
tensorflow
|
||||
flask
|
||||
gunicorn
|
||||
google-python-cloud-debugger
|
||||
|
||||
Reference in New Issue
Block a user