Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,11 @@ import gradio as gr
|
|
| 5 |
from threading import Thread
|
| 6 |
import numpy as np
|
| 7 |
from PIL import Image
|
| 8 |
-
from parler_tts import ParlerTTSForConditionalGeneration
|
| 9 |
import subprocess
|
| 10 |
-
import spaces
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Install flash-attention
|
| 13 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
|
|
|
| 5 |
from threading import Thread
|
| 6 |
import numpy as np
|
| 7 |
from PIL import Image
|
|
|
|
| 8 |
import subprocess
|
| 9 |
+
import spaces
|
| 10 |
+
from parler_tts import ParlerTTSForConditionalGeneration
|
| 11 |
+
import soundfile as sf
|
| 12 |
+
import tempfile
|
| 13 |
|
| 14 |
# Install flash-attention
|
| 15 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|