NeuralFalcon commited on
Commit
9f1ac0e
·
verified ·
1 Parent(s): 0aacb80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,4 +1,3 @@
1
- #@title Utils
2
  from utils import language_dict
3
  import math
4
  import torch
@@ -12,7 +11,6 @@ import shutil
12
  import re
13
  import uuid
14
  from pydub import AudioSegment
15
- import torch
16
 
17
 
18
 
@@ -23,7 +21,7 @@ def get_language_name(lang_code):
23
  # Check if the language code matches
24
  if details["lang_code"] == lang_code:
25
  return language # Return the language name
26
- return None
27
 
28
  def clean_file_name(file_path):
29
  # Get the base file name and extension
@@ -326,4 +324,4 @@ def main(debug, share):
326
  # Launch Gradio with command-line options
327
  demo.queue().launch(debug=debug, share=share)
328
  if __name__ == "__main__":
329
- main()
 
 
1
  from utils import language_dict
2
  import math
3
  import torch
 
11
  import re
12
  import uuid
13
  from pydub import AudioSegment
 
14
 
15
 
16
 
 
21
  # Check if the language code matches
22
  if details["lang_code"] == lang_code:
23
  return language # Return the language name
24
+ return lang_code
25
 
26
  def clean_file_name(file_path):
27
  # Get the base file name and extension
 
324
  # Launch Gradio with command-line options
325
  demo.queue().launch(debug=debug, share=share)
326
  if __name__ == "__main__":
327
+ main()