This commit is contained in:
DelLevin-Home
2026-06-17 01:51:11 +08:00
parent bb66913eab
commit db033c661f
28 changed files with 3744 additions and 31 deletions

View File

@@ -10,11 +10,11 @@ from datetime import datetime
from flask import Flask, render_template, jsonify, g, request, session, redirect
from config import PORT, LOGIN_ENABLED, LOGIN_USERNAME, LOGIN_PASSWORD, SECRET_KEY
from blueprints import pin_tu_bp, base64_bp, down_video_bp, fen_ci_bp, content_tag_bp, chmod_calc_bp, json_format_bp, qr_code_bp, http_status_bp, url_parser_bp, token_gen_bp, sovits_tts_bp, stt_bp, ai_dubbing_bp, rvc_bp
from blueprints import pin_tu_bp, base64_bp, down_video_bp, fen_ci_bp, content_tag_bp, chmod_calc_bp, json_format_bp, qr_code_bp, http_status_bp, url_parser_bp, token_gen_bp, sovits_tts_bp, stt_bp, ai_dubbing_bp, rvc_bp, audio_slicer_bp, uvr_sep_bp
from utils.stats_db import init_db, record_call, get_total_count, get_avg_duration, get_daily_counts, get_monthly_counts, get_available_years, get_available_months, get_daily_counts_by_month, get_hourly_counts, get_endpoint_stats, get_today_count, get_yesterday_count, get_month_count, get_success_rate, get_duration_distribution, get_slowest_endpoints, get_week_compare, get_recent_calls, get_active_days
from utils.stats_db import ALLOWED_TABLES, get_table_info, get_table_rows, get_table_count, insert_row, update_row, delete_rows, clear_table
TOOL_COUNT = 15
TOOL_COUNT = 17
def create_app():
@@ -226,6 +226,8 @@ def create_app():
app.register_blueprint(stt_bp)
app.register_blueprint(ai_dubbing_bp)
app.register_blueprint(rvc_bp)
app.register_blueprint(audio_slicer_bp)
app.register_blueprint(uvr_sep_bp)
return app