MufinApps commited on
Commit
2135ecb
·
1 Parent(s): 7dbeac7

add credentials

Browse files
.gitignore CHANGED
@@ -1,3 +1,4 @@
1
  rt/
2
  checkopenai.py
3
- msq-ai-78bdccb055f4.json
 
 
1
  rt/
2
  checkopenai.py
3
+ msq-ai-78bdccb055f4.json
4
+ .env
__pycache__/transcription_service.cpython-311.pyc CHANGED
Binary files a/__pycache__/transcription_service.cpython-311.pyc and b/__pycache__/transcription_service.cpython-311.pyc differ
 
app.py CHANGED
@@ -4,9 +4,13 @@ import threading as th
4
  import os
5
  import json
6
  from transcription_service import transcribe_speech_local
 
7
 
8
 
9
 
 
 
 
10
  def translateoutput(text,language):
11
  if text=="" or text is None:
12
  return ""
 
4
  import os
5
  import json
6
  from transcription_service import transcribe_speech_local
7
+ from dotenv import load_dotenv
8
 
9
 
10
 
11
+ load_dotenv()
12
+
13
+
14
  def translateoutput(text,language):
15
  if text=="" or text is None:
16
  return ""
transcription_service.py CHANGED
@@ -42,6 +42,7 @@
42
  import os
43
  from google.cloud import speech
44
 
 
45
 
46
  def transcribe_speech_local(wav_file,language):
47
  """
 
42
  import os
43
  from google.cloud import speech
44
 
45
+ os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'msq-ai-78bdccb055f4.json'
46
 
47
  def transcribe_speech_local(wav_file,language):
48
  """