Update gradio_app.py
This commit is contained in:
parent
fcdd1d30af
commit
0f5451bf4e
|
@ -1,6 +1,4 @@
|
||||||
import os
|
import os
|
||||||
os.chdir("/content/VoiceCraft-gradio-colab")
|
|
||||||
os.environ['USER'] = 'aaa'
|
|
||||||
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
|
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
|
||||||
os.environ["CUDA_VISIBLE_DEVICES"] = "0" # for local use
|
os.environ["CUDA_VISIBLE_DEVICES"] = "0" # for local use
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
|
@ -16,6 +14,9 @@ import numpy as np
|
||||||
import random
|
import random
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
os.chdir("/content/VoiceCraft-gradio-colab")
|
||||||
|
os.environ['USER'] = 'aaa'
|
||||||
|
|
||||||
TMP_PATH = os.getenv("TMP_PATH", "./demo/temp")
|
TMP_PATH = os.getenv("TMP_PATH", "./demo/temp")
|
||||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||||
whisper_model, align_model, voicecraft_model = None, None, None
|
whisper_model, align_model, voicecraft_model = None, None, None
|
||||||
|
|
Loading…
Reference in New Issue