HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/OpenAI-Whisper-GUI/setup.py
import os
import subprocess
import sys
import time

if not sys.platform.startswith("win"):
    print("This app only support Windows system!")
    sys.exit()

else:
    try:
        import pkg_resources
    except ImportError:
        subprocess.call('python -m pip install setuptools', shell=True)
        import pkg_resources

    DIR_PATH = os.path.dirname(os.path.realpath(__file__))

    # Checking the required folders
    folders = ["assets"]
    missing_folder = []
    for i in folders:
        if not os.path.exists(i):
            missing_folder.append(i)
    if missing_folder:
        print("These folder(s) not available: " + str(missing_folder))
        print("Download them from the repository properly")
        sys.exit()
    else:
        print("All folders available!")

    # Checking required modules
    required = {"Pillow==10.1.0", "customtkinter==5.2.1", "packaging==23.2", "openai-whisper==20231117", "pynvml==11.5.0"}
    installed = {pkg.key for pkg in pkg_resources.working_set}
    missing = required - installed
    missing_set = [*missing, ]
    pytorch_win = "torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118"
    pytorch_linux = "torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118"
    pytorch_mac = "torch torchvision torchaudio"

    # Download the modules if not installed
    if missing:
        try:
            print("Installing modules...")
            for x in range(len(missing_set)):
                y = missing_set[x]
                subprocess.call('python -m pip install ' + y, shell=True)
        except:
            print("Unable to download! \nThis are the required ones: " + str(
                required) + "\nUse 'pip install module_name' to download the modules one by one.")
            time.sleep(3)
            sys.exit()

        try:
            print("Installing Pytorch...")
            if sys.platform.startswith("win"):
                subprocess.call('python -m pip install ' + pytorch_win, shell=True)
            elif sys.platform.startswith("linux"):
                subprocess.call('python3 -m pip install ' + pytorch_linux, shell=True)
            elif sys.platform.startswith("darwin"):
                subprocess.call('python3 -m pip install ' + pytorch_mac, shell=True)
        except:
            print("Unable to download! \nThis are the required ones: " + str(
                required) + "\nUse 'pip/pip3 install module_name' to download the modules one by one.")
            sys.exit()

    else:
        print("All required modules installed!")

    # Everything done!
    print("Setup Complete!")
    time.sleep(5)
    sys.exit()