skytnt commited on
Commit
3513487
1 Parent(s): 19dd574

remove flask cors

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -1,7 +1,6 @@
1
  import torch
2
  from transformers import T5Tokenizer, GPT2LMHeadModel
3
  from flask import Flask, request, jsonify
4
- from flask_cors import CORS, cross_origin
5
  import cutlet
6
 
7
  convertors = {}
@@ -58,7 +57,6 @@ def gen_lyric(title: str, prompt_text: str):
58
 
59
 
60
  app = Flask(__name__, static_url_path="", static_folder="frontend/dist")
61
- cors = CORS(app)
62
 
63
  @app.route('/')
64
  def index_page():
 
1
  import torch
2
  from transformers import T5Tokenizer, GPT2LMHeadModel
3
  from flask import Flask, request, jsonify
 
4
  import cutlet
5
 
6
  convertors = {}
 
57
 
58
 
59
  app = Flask(__name__, static_url_path="", static_folder="frontend/dist")
 
60
 
61
  @app.route('/')
62
  def index_page():