Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
| 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("
|
| 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():
|