ledddev commited on
Commit
b3056e9
1 Parent(s): 80cf4a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -16,14 +16,14 @@ from pydub.playback import play
16
  PATH_TO_MODEL = os.path.join(os.getcwd(), "vosk-model-tts-ru-0.4-multi")
17
 
18
 
19
- with open(os.path.join(PATH_TO_MODEL, 'config.json')) as file:
20
- for i, val in enumerate(file):
21
- if i == 100:
22
- break
23
- print(val)
24
 
25
 
26
- PATH_TO_OUTPUT = "/content/" #TODO: IT
27
  k = "sk-YOVNQzHmpga9My3dwlSo9BQN907TuPZQXcHn50ztigTwm3I2"
28
  YA_GPT_KEY = "AQVNyVqBi-XoJ1cAo7VIxq6ztgXm3owqowtso5Qb"
29
  instruction = """
@@ -64,7 +64,6 @@ instruction = """
64
  class VoiceGenerator:
65
 
66
  def __init__(self):
67
- #vosk-model-tts-ru-0.4-multi/
68
  self.model = Model(model_path=PATH_TO_MODEL)
69
 
70
 
 
16
  PATH_TO_MODEL = os.path.join(os.getcwd(), "vosk-model-tts-ru-0.4-multi")
17
 
18
 
19
+ # with open(os.path.join(PATH_TO_MODEL, 'config.json')) as file:
20
+ # for i, val in enumerate(file):
21
+ # if i == 100:
22
+ # break
23
+ # print(val)
24
 
25
 
26
+ PATH_TO_OUTPUT = os.path.join(os.getcwd(), "content")
27
  k = "sk-YOVNQzHmpga9My3dwlSo9BQN907TuPZQXcHn50ztigTwm3I2"
28
  YA_GPT_KEY = "AQVNyVqBi-XoJ1cAo7VIxq6ztgXm3owqowtso5Qb"
29
  instruction = """
 
64
  class VoiceGenerator:
65
 
66
  def __init__(self):
 
67
  self.model = Model(model_path=PATH_TO_MODEL)
68
 
69