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" # ← your actual script name FIXED_INPUT_NAME = "input.xlsx" FIXED_OUTPUT_NAME = "output.html" # Public URL prefix – change if domain/port is different PUBLIC_URL_PREFIX = "http://ap-vrahealth0001d.oneadr.net" # ──────────────────────────────────────── os.makedirs(UPLOAD_FOLDER, exist_ok=True) HTML = """ <!doctype html> <title>Excel Processor</title> <style> body {font-family: sans-serif; max-width: 800px; margin: 50px auto; line-height: 1.6;} h1 {color:#2c3e50;} .container {border:1px solid #ddd...