fix2
This commit is contained in:
@@ -11,7 +11,8 @@ from tasks import (
|
||||
extract_audio_task,
|
||||
transcribe_audio_task,
|
||||
translate_text_task,
|
||||
summarize_text_task
|
||||
summarize_text_task,
|
||||
preview_action_items_task
|
||||
)
|
||||
|
||||
api_bp = Blueprint("api_bp", __name__, url_prefix="/api")
|
||||
@@ -230,6 +231,17 @@ def summarize_meeting(meeting_id):
|
||||
task = summarize_text_task.delay(meeting_id)
|
||||
return jsonify({'task_id': task.id, 'status_url': f'/status/{task.id}'}), 202
|
||||
|
||||
@api_bp.route('/meetings/<int:meeting_id>/preview-actions', methods=['POST'])
|
||||
@jwt_required()
|
||||
def preview_actions(meeting_id):
|
||||
meeting = Meeting.query.get_or_404(meeting_id)
|
||||
text_content = meeting.summary or meeting.transcript
|
||||
if not text_content:
|
||||
return jsonify({'error': 'Meeting has no summary or transcript to analyze.'}), 400
|
||||
|
||||
task = preview_action_items_task.delay(text_content)
|
||||
return jsonify({'task_id': task.id, 'status_url': f'/status/{task.id}'}), 202
|
||||
|
||||
# --- Independent Tool Routes ---
|
||||
@api_bp.route('/tools/extract_audio', methods=['POST'])
|
||||
@jwt_required()
|
||||
|
Reference in New Issue
Block a user