deekshachilukuri commited on
Commit
61f242d
·
verified ·
1 Parent(s): 901a557

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -6,6 +6,8 @@ from unittest.mock import patch
6
  from TTS.api import TTS
7
  import torch
8
  import gradio as gr
 
 
9
  os.environ["COQUI_TOS_AGREED"] = "1"
10
 
11
  # Function to always return 'y'
@@ -21,7 +23,11 @@ with patch('builtins.input', always_yes):
21
  @spaces.GPU(enable_queue=True)
22
 
23
 
24
- sa = load_dataset("sampleaudio.wav", data_dir ='/home/user')
 
 
 
 
25
 
26
 
27
 
 
6
  from TTS.api import TTS
7
  import torch
8
  import gradio as gr
9
+ from torchaudio import load
10
+
11
  os.environ["COQUI_TOS_AGREED"] = "1"
12
 
13
  # Function to always return 'y'
 
23
  @spaces.GPU(enable_queue=True)
24
 
25
 
26
+
27
+
28
+ # Define the relative path to the audio file
29
+ sa = '../Data/sampleaudio.wav'
30
+
31
 
32
 
33