Spaces:
Running
Running
buletomato25
commited on
Commit
·
dd43f38
1
Parent(s):
2bf77cf
google_login_api
Browse files- app.py +2 -0
- client_secret.json +1 -0
- requirements.txt +6 -2
app.py
CHANGED
@@ -14,6 +14,8 @@ from flask_login import LoginManager, UserMixin, login_user, logout_user, login_
|
|
14 |
from database import db
|
15 |
from users import Users
|
16 |
from werkzeug.security import generate_password_hash, check_password_hash
|
|
|
|
|
17 |
|
18 |
# Hugging Face のトークン取得(環境変数 HF に設定)
|
19 |
#hf_token = os.environ.get("HF")
|
|
|
14 |
from database import db
|
15 |
from users import Users
|
16 |
from werkzeug.security import generate_password_hash, check_password_hash
|
17 |
+
from dotenv import load_dotenv
|
18 |
+
|
19 |
|
20 |
# Hugging Face のトークン取得(環境変数 HF に設定)
|
21 |
#hf_token = os.environ.get("HF")
|
client_secret.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"web":{"client_id":"228160683186-6u7986qsfhcv3kd9iqtv08iphpl4gdk2.apps.googleusercontent.com","project_id":"justtalk-454100","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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","redirect_uris":["http://127.0.0.1:7860/callback"]}}
|
requirements.txt
CHANGED
@@ -5,7 +5,11 @@ pydub==0.25.1
|
|
5 |
matplotlib==3.6.3
|
6 |
python-dotenv
|
7 |
uwsgi
|
8 |
-
|
9 |
PyMySQL
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
|
|
5 |
matplotlib==3.6.3
|
6 |
python-dotenv
|
7 |
uwsgi
|
8 |
+
Flask-SQLAlchemy==3.0.5
|
9 |
PyMySQL
|
10 |
+
Flask-Login==0.6.3
|
11 |
+
requests==2.32.3
|
12 |
+
google-auth==2.38.0
|
13 |
+
google-auth-oauthlib==1.2.1
|
14 |
+
google-auth-httplib2==0.2.0
|
15 |
|