Gregniuki commited on
Commit
d3e78d2
·
1 Parent(s): b6220dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -86,6 +86,9 @@ import sys
86
  #sys.path.append('/content/piper/notebooks')
87
  sys.path.append('./content/piper/src/python')
88
  import configparser
 
 
 
89
 
90
  class Translator:
91
  def __init__(self):
@@ -126,7 +129,6 @@ def detect_onnx_models(path):
126
 
127
  renamed_audio_file = None
128
 
129
- model_configurations = {}
130
 
131
 
132
  @app.on_event("startup")
 
86
  #sys.path.append('/content/piper/notebooks')
87
  sys.path.append('./content/piper/src/python')
88
  import configparser
89
+ # Define global variables
90
+ onnx_models = [] # A list to store model names
91
+ model_configurations = {} # A dictionary to store model configurations
92
 
93
  class Translator:
94
  def __init__(self):
 
129
 
130
  renamed_audio_file = None
131
 
 
132
 
133
 
134
  @app.on_event("startup")