Skip to content

several experimental modsΒ #64

@Neovolter

Description

@Neovolter

I was experimenting with Gemini 3 Pro and slightly modified a couple of things so maybe it would be useful for someone :)

  1. File: requirements.txt
    Updated to point to bleeding-edge repositories and unpin versions.
    Added: --extra-index-url for PyTorch (CUDA 13.0) wheel downloads.
    Added: --extra-index-url for Azure AIInfra Nightly builds (for ONNX Runtime CUDA 13).
    Changed: Removed specific version locks (e.g., ==5.49.1) for gradio and audio-separator to allow installation of the latest versions.
    Removed: The [gpu] tag from audio-separator (prevented it from overwriting our custom nightly runtime with the standard CUDA 12 one).

requirements.txt

  1. File: app.py
    Heavily modified to support Gradio 6.0 API changes and force CUDA 13 detection.
    A. Added DLL Path Injection (Top of file)
    Inserted code at the very start of the script to explicitly register the CUDA 13 bin\x64 directory. This ensures Python finds the system DLLs before loading internal libraries.

--- FORCE DLL LOAD (Bleeding Edge CUDA 13/TRT 10 Fix) ---

crt_path = r"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\bin\x64"
if os.path.exists(crt_path):
if hasattr(os, 'add_dll_directory'):
os.add_dll_directory(crt_path)
os.environ["PATH"] = crt_path + os.pathsep + os.environ["PATH"]

---------------------------------------------------------

B. Gradio 6.0 Migration: gr.Blocks()
Moved global settings out of the Blocks constructor.
Before: with gr.Blocks(theme=..., js=..., title=...)
After: with gr.Blocks(title="🎡 UVR5 UI 🎡")
C. Gradio 6.0 Migration: gr.Audio()
Removed the deprecated argument that causes crashes in Gradio 6.
Removed: show_download_button = True from ALL instances of gr.Audio (Roformer, MDX, VR Arch, Demucs tabs).
D. Gradio 6.0 Migration: app.launch()
Moved settings from Blocks to Launch and added security permissions.
Added: theme=loadThemes.load_json() or "NoCrypt/miku"
Added: js=js_func
Added: allowed_paths=[out_dir] (Crucial: allows the web UI to play audio files generated in your output folder).
Removed: favicon_path="..." (Deprecated/Removed in Gradio 5/6).
Current Launch Block:

app.launch(
theme=loadThemes.load_json() or "NoCrypt/miku",
js=js_func,
share=args.share,
server_name="",
server_port=args.listen_port,
inbrowser=args.open,
allowed_paths=[out_dir]
)

app.py

And also I have updated the python environment to 3.13.9

The only problem I noticed after updating to Gradio 6 is when clicking on the "settings" at the bottom nothing happens and after this in order to continue to interact with other elements of the GUI one need to refresh the web-page

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions