Mahiruoshi's picture
Create app.py
ef59294 verified
raw
history blame
637 Bytes
from flask import Flask, request, jsonify, render_template_string
from flask_cors import CORS
Flaskapp = Flask(__name__)
CORS(Flaskapp)
@Flaskapp.route('/')
def tts():
return render_template_string("""
<!DOCTYPE html>
<html>
<head>
<title>TTS API Documentation</title>
</head>
<body>
<iframe src="https://mahiruoshi-mygo-vits-bert.hf.space" style="width:100%; height:100vh; border:none;"></iframe>
</body>
</html>
""")
if __name__ == "__main__":
Flaskapp.run(host="0.0.0.0", port=7860,debug=True)