broadfield-dev commited on
Commit
799110a
·
verified ·
1 Parent(s): f1c7068

Update blueprints/summarize.py

Browse files
Files changed (1) hide show
  1. blueprints/summarize.py +2 -2
blueprints/summarize.py CHANGED
@@ -77,12 +77,12 @@ def run_inference_logic(config):
77
 
78
  # --- Routes ---
79
 
80
- @inference_bp.route('/', methods=['GET'])
81
  def index():
82
  """Renders the UI."""
83
  return render_template('sum_inference.html')
84
 
85
- @inference_bp.route('/api/summarize', methods=['POST'])
86
  def api_summarize():
87
  """API Endpoint to handle the AJAX request from the UI."""
88
  data = request.get_json()
 
77
 
78
  # --- Routes ---
79
 
80
+ @summarize_bp.route('/', methods=['GET'])
81
  def index():
82
  """Renders the UI."""
83
  return render_template('sum_inference.html')
84
 
85
+ @summarize_bp.route('/api/summarize', methods=['POST'])
86
  def api_summarize():
87
  """API Endpoint to handle the AJAX request from the UI."""
88
  data = request.get_json()