sagar007 commited on
Commit
dfcd89e
·
verified ·
1 Parent(s): d3902f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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 # Add this import
 
 
 
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)