Spaces:
Running
Running
buletomato25
commited on
Commit
·
7e8400a
1
Parent(s):
ab0c5ba
fix_url
Browse files- app.py +2 -4
- client_secret.json +4 -1
app.py
CHANGED
@@ -39,7 +39,8 @@ app.config['SECRET_KEY'] = os.urandom(24)
|
|
39 |
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
|
40 |
GOOGLE_CLIENT_ID = "228160683186-6u7986qsfhcv3kd9iqtv08iphpl4gdk2.apps.googleusercontent.com"
|
41 |
GOOGLE_CLIENT_SECRET = "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"
|
42 |
-
REDIRECT_URI = "https://huggingface.co/spaces/Justtalk/JusTalk/callback"
|
|
|
43 |
|
44 |
flow = Flow.from_client_secrets_file(
|
45 |
'client_secret.json',
|
@@ -160,9 +161,6 @@ def talk_detail():
|
|
160 |
}
|
161 |
return render_template('talkDetail.html', user=user_info)
|
162 |
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
# インデックス画面(テンプレート: index.html)
|
167 |
@app.route('/index', methods=['GET', 'POST'])
|
168 |
def index():
|
|
|
39 |
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
|
40 |
GOOGLE_CLIENT_ID = "228160683186-6u7986qsfhcv3kd9iqtv08iphpl4gdk2.apps.googleusercontent.com"
|
41 |
GOOGLE_CLIENT_SECRET = "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"
|
42 |
+
#REDIRECT_URI = "https://huggingface.co/spaces/Justtalk/JusTalk/callback"
|
43 |
+
REDIRECT_URI = "http://127.0.0.1:7860/callback"
|
44 |
|
45 |
flow = Flow.from_client_secrets_file(
|
46 |
'client_secret.json',
|
|
|
161 |
}
|
162 |
return render_template('talkDetail.html', user=user_info)
|
163 |
|
|
|
|
|
|
|
164 |
# インデックス画面(テンプレート: index.html)
|
165 |
@app.route('/index', methods=['GET', 'POST'])
|
166 |
def index():
|
client_secret.json
CHANGED
@@ -6,6 +6,9 @@
|
|
6 |
"token_uri": "https://oauth2.googleapis.com/token",
|
7 |
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
8 |
"client_secret": "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",
|
9 |
-
"redirect_uris": [
|
|
|
|
|
|
|
10 |
}
|
11 |
}
|
|
|
6 |
"token_uri": "https://oauth2.googleapis.com/token",
|
7 |
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
8 |
"client_secret": "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",
|
9 |
+
"redirect_uris": [
|
10 |
+
"https://huggingface.co/spaces/Justtalk/JusTalk/callback",
|
11 |
+
"http://127.0.0.1:7860/callback"
|
12 |
+
]
|
13 |
}
|
14 |
}
|