datien228 commited on
Commit
825ef0a
·
1 Parent(s): abb00a7

Add cross origin

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -18,6 +18,7 @@ def home():
18
 
19
 
20
  @app.route('/summarize', methods=['POST'])
 
21
  def recommend():
22
  if request.method == "POST":
23
  # Get form data
 
18
 
19
 
20
  @app.route('/summarize', methods=['POST'])
21
+ @cross_origin()
22
  def recommend():
23
  if request.method == "POST":
24
  # Get form data