Mahiruoshi commited on
Commit
ef59294
·
verified ·
1 Parent(s): 3f7c045

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -0
app.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, request, jsonify, render_template_string
2
+ from flask_cors import CORS
3
+
4
+ Flaskapp = Flask(__name__)
5
+ CORS(Flaskapp)
6
+ @Flaskapp.route('/')
7
+
8
+ def tts():
9
+ return render_template_string("""
10
+ <!DOCTYPE html>
11
+ <html>
12
+ <head>
13
+ <title>TTS API Documentation</title>
14
+ </head>
15
+ <body>
16
+ <iframe src="https://mahiruoshi-mygo-vits-bert.hf.space" style="width:100%; height:100vh; border:none;"></iframe>
17
+ </body>
18
+ </html>
19
+ """)
20
+
21
+
22
+
23
+ if __name__ == "__main__":
24
+ Flaskapp.run(host="0.0.0.0", port=7860,debug=True)