from flask import Flask import os app = Flask(__name__) @app.route("/asd") def asd(): os.system("xcopy /y generated.wav .\MakeItTalk\examples") os.system("cd MakeItTalk & python main_end2end.py") if __name__ == '__main__': app.run(debug=True)