Testing
from flask import Flask, request, send_file, render_template_string import os import subprocess import stat app = Flask(__name__) # ──────────────────────────────────────── # CONFIGURATION # ──────────────────────────────────────── UPLOAD_FOLDER = "/var/www/html/uploads" ALLOWED_EXT = {".xlsx", ".xls"} YOUR_PROCESS_SCRIPT = "/var/www/html/process_excel.py" # ← change to your actual script name if different FIXED_INPUT_NAME = "input.xlsx" FIXED_OUTPUT_NAME = "output.html" # ──────────────────────────────────────── os.makedirs(UPLOAD_FOLDER, exist_ok=True) HTML = """ <!doctype html> <title>Excel Processor</title> <style> body {font-family: sans-serif; max-width: 700px; margin: 40px auto;} h1 {color:#2c3e50;} .box {border:1px solid #ddd; padding:20px; border-radius:8px; background:#f9f9f9;} input[type=file] {margin:15px 0;} button { ...