Spaces:
Running
Running
buletomato25
commited on
Commit
·
118fe70
1
Parent(s):
1d8c707
fix_login
Browse files- __pycache__/login.cpython-310.pyc +0 -0
- app.py +0 -6
__pycache__/login.cpython-310.pyc
ADDED
Binary file (1.78 kB). View file
|
|
app.py
CHANGED
@@ -37,12 +37,6 @@ app = Flask(__name__)
|
|
37 |
|
38 |
app.config['SECRET_KEY'] = os.urandom(24)
|
39 |
|
40 |
-
flow = Flow.from_client_secrets_file(
|
41 |
-
'client_secret.json',
|
42 |
-
scopes=["openid", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/userinfo.email"],
|
43 |
-
redirect_uri=REDIRECT_URI
|
44 |
-
)
|
45 |
-
|
46 |
def cosine_similarity(vec1, vec2):
|
47 |
vec1 = vec1 / np.linalg.norm(vec1)
|
48 |
vec2 = vec2 / np.linalg.norm(vec2)
|
|
|
37 |
|
38 |
app.config['SECRET_KEY'] = os.urandom(24)
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
def cosine_similarity(vec1, vec2):
|
41 |
vec1 = vec1 / np.linalg.norm(vec1)
|
42 |
vec2 = vec2 / np.linalg.norm(vec2)
|