datien228 commited on
Commit
ea3cdf2
·
1 Parent(s): 76c4cf3
Files changed (2) hide show
  1. app.py +1 -1
  2. templates/index.html +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def home():
19
  return render_template('index.html')
20
 
21
 
22
- @app.route('/summarize', methods=['POST', 'OPTIONS'])
23
  @cross_origin()
24
  def recommend():
25
  if request.method == "POST":
 
19
  return render_template('index.html')
20
 
21
 
22
+ @app.route('https://huggingface.co/spaces/datien228/text-summarizer/summarize', methods=['POST', 'OPTIONS'])
23
  @cross_origin()
24
  def recommend():
25
  if request.method == "POST":
templates/index.html CHANGED
@@ -192,7 +192,7 @@
192
  e.preventDefault();
193
  $.ajax({
194
  type: 'POST',
195
- url: '/summarize',
196
  data: JSON.stringify(data),
197
  contentType: "application/json",
198
  dataType: 'json',
 
192
  e.preventDefault();
193
  $.ajax({
194
  type: 'POST',
195
+ url: 'https://huggingface.co/spaces/datien228/text-summarizer/summarize',
196
  data: JSON.stringify(data),
197
  contentType: "application/json",
198
  dataType: 'json',