sathyaphaneeshwar commited on
Commit
5fef401
1 Parent(s): ada3d45

Description

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -9,9 +9,14 @@ import pickle
9
  import webbrowser
10
  from threading import Thread
11
  from flask import Flask, request
 
12
 
 
 
 
 
13
  # OAuth 2.0 configuration
14
- CLIENT_SECRETS_FILE = "C:/Users/sathy/OneDrive/Desktop/gradio_app/gradio3/client_secret2.json"
15
  SCOPES = ['https://www.googleapis.com/auth/drive.file', 'https://www.googleapis.com/auth/userinfo.profile']
16
  API_SERVICE_NAME = 'drive'
17
  API_VERSION = 'v3'
@@ -20,7 +25,7 @@ API_VERSION = 'v3'
20
  user_creds = None
21
  user_info = None
22
  auth_completed = False
23
- DEEPGRAM_API_KEY = "1e124afa2a0bdb7fbc62306edf5cb73f5439dc4c"
24
 
25
  function_variables = {}
26
 
 
9
  import webbrowser
10
  from threading import Thread
11
  from flask import Flask, request
12
+ from dotenv import load_dotenv
13
 
14
+ load_dotenv()
15
+
16
+ DEEPGRAM_API_KEY = os.getenv("DEEPGRAM_API_KEY")
17
+ CLIENT_SECRETS_FILE = os.getenv("CLIENT_SECRETS_FILE")
18
  # OAuth 2.0 configuration
19
+ #CLIENT_SECRETS_FILE = "C:/Users/sathy/OneDrive/Desktop/gradio_app/gradio3/client_secret2.json"
20
  SCOPES = ['https://www.googleapis.com/auth/drive.file', 'https://www.googleapis.com/auth/userinfo.profile']
21
  API_SERVICE_NAME = 'drive'
22
  API_VERSION = 'v3'
 
25
  user_creds = None
26
  user_info = None
27
  auth_completed = False
28
+
29
 
30
  function_variables = {}
31