Spaces:
Sleeping
Sleeping
Update blueprints/summarize.py
Browse files- blueprints/summarize.py +2 -2
blueprints/summarize.py
CHANGED
|
@@ -77,12 +77,12 @@ def run_inference_logic(config):
|
|
| 77 |
|
| 78 |
# --- Routes ---
|
| 79 |
|
| 80 |
-
@
|
| 81 |
def index():
|
| 82 |
"""Renders the UI."""
|
| 83 |
return render_template('sum_inference.html')
|
| 84 |
|
| 85 |
-
@
|
| 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()
|