Spaces:
Sleeping
Sleeping
Commit
·
6a9e738
1
Parent(s):
14632b5
Update _wsgi.py
Browse files
_wsgi.py
CHANGED
@@ -4,6 +4,8 @@ import logging
|
|
4 |
import logging.config
|
5 |
import json
|
6 |
|
|
|
|
|
7 |
logging.config.dictConfig({
|
8 |
"version": 1,
|
9 |
"formatters": {
|
@@ -106,6 +108,10 @@ if __name__ == "__main__":
|
|
106 |
|
107 |
app = init_app(model_class=Model)
|
108 |
|
|
|
|
|
|
|
|
|
109 |
app.run(host=args.host, port=args.port, debug=args.debug)
|
110 |
|
111 |
else:
|
|
|
4 |
import logging.config
|
5 |
import json
|
6 |
|
7 |
+
from creds import get_credentials
|
8 |
+
|
9 |
logging.config.dictConfig({
|
10 |
"version": 1,
|
11 |
"formatters": {
|
|
|
108 |
|
109 |
app = init_app(model_class=Model)
|
110 |
|
111 |
+
# pass
|
112 |
+
os.environ["GOOGLE_APPLICATION_CREDENTIALS"]= get_credentials()
|
113 |
+
print("credentials set")
|
114 |
+
|
115 |
app.run(host=args.host, port=args.port, debug=args.debug)
|
116 |
|
117 |
else:
|