File size: 476 Bytes
2ed72d6
 
 
 
 
 
 
 
 
 
 
 
dc3e517
2ed72d6
 
 
e9bc9df
2ed72d6
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
from stable_audio_tools import get_pretrained_model
from stable_audio_tools.interface.gradio import create_ui
import json 

import torch

def run():
    torch.manual_seed(42)

    interface = create_ui(
        model_config_path = "model_config_float_conditioning_dit_all.json", 
        ckpt_path="epoch=1384-step=645000.ckpt", 
        model_half=False
    )
    interface.queue()
    interface.launch(share=False)

if __name__ == "__main__":
    run()