karim23657 commited on
Commit
494d3a5
·
verified ·
1 Parent(s): 0d710fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -142,7 +142,7 @@ def copy_lang_dict(data_folder, destination,lang):
142
 
143
  def compile_espeak():
144
  compile_command = [espeak_path, "--compile=fa"]
145
- cwd_path = r"K:\code\dev\python\other\tts\espeak dictionary\dictsource"
146
  subprocess.run(compile_command, cwd=cwd_path)
147
  print("Compilation done!") # Giving feedback in the console for now
148
 
@@ -288,7 +288,7 @@ ifaces = {
288
 
289
  @app.route("/", methods=["GET"])
290
  def index():
291
- return render_template("tab-2-6-template.html", components=ifaces['tts'].render_components())
292
 
293
  @app.route("/submit", methods=["POST"])
294
  def submit():
 
142
 
143
  def compile_espeak():
144
  compile_command = [espeak_path, "--compile=fa"]
145
+ cwd_path = os.path.join(static_folder,"dictsource")
146
  subprocess.run(compile_command, cwd=cwd_path)
147
  print("Compilation done!") # Giving feedback in the console for now
148
 
 
288
 
289
  @app.route("/", methods=["GET"])
290
  def index():
291
+ return render_template("index.html", components=ifaces['tts'].render_components())
292
 
293
  @app.route("/submit", methods=["POST"])
294
  def submit():