This commit is contained in:
Hell13Cat
2026-06-02 00:44:02 +03:00
parent 4a88e4c491
commit 4cddd19c76
3 changed files with 38 additions and 4 deletions
+4 -1
View File
@@ -1,8 +1,9 @@
from system_module import db, gelbooru, logger
from system_module import db, gelbooru, logger, image_processor
from flask import Flask, render_template, jsonify, send_from_directory, render_template_string, request
import json
import requests
from pathlib import Path
import subprocess
import traceback
import os
@@ -36,6 +37,8 @@ def find_file(filename, file_folders):
return folder_path
return None
if not image_processor.check_ffmpeg(): print("WARNING!\n\nУ вас не установлен ffmpeg. Генерация превью для видео не доступна!")
@app.route("/")
def index():
return render_template("index.html")