kc34251 commited on
Commit
42667ba
·
1 Parent(s): 1a64906
Files changed (2) hide show
  1. app.py +2 -1
  2. requirements.txt +3 -1
app.py CHANGED
@@ -89,7 +89,8 @@ if file_name is not None:
89
  with open("./audio_text.json", "w", encoding="utf8") as f:
90
  json.dump(text, f, ensure_ascii=False)
91
  text_file = "audio_text.json"
92
- language = ''
93
  f = open('audio_text.json')
94
  data = json.load(f)
95
  output = translate_text(data['text'],language)
 
 
89
  with open("./audio_text.json", "w", encoding="utf8") as f:
90
  json.dump(text, f, ensure_ascii=False)
91
  text_file = "audio_text.json"
92
+ language = option
93
  f = open('audio_text.json')
94
  data = json.load(f)
95
  output = translate_text(data['text'],language)
96
+
requirements.txt CHANGED
@@ -6,4 +6,6 @@ json
6
  ffmpy
7
  whisper
8
  deep_translator
9
- pyttsx3
 
 
 
6
  ffmpy
7
  whisper
8
  deep_translator
9
+ pyttsx3
10
+ streamlit
11
+ transformers