Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from elevenlabs.client import ElevenLabs
|
|
9 |
from pathlib import Path
|
10 |
from scipy.io.wavfile import write, read
|
11 |
import yt_dlp
|
12 |
-
|
13 |
ELEVENLABS_API = os.environ.get("ELEVENLABS_API")
|
14 |
ASSEMBLYAI_API = os.environ.get("ASSEMBLYAI_API")
|
15 |
|
@@ -126,4 +126,5 @@ with gr.Blocks() as demo:
|
|
126 |
|
127 |
submit.click(fn=voice_to_voice, inputs=audio_input, outputs=output_components, show_progress=True)
|
128 |
|
129 |
-
|
|
|
|
9 |
from pathlib import Path
|
10 |
from scipy.io.wavfile import write, read
|
11 |
import yt_dlp
|
12 |
+
|
13 |
ELEVENLABS_API = os.environ.get("ELEVENLABS_API")
|
14 |
ASSEMBLYAI_API = os.environ.get("ASSEMBLYAI_API")
|
15 |
|
|
|
126 |
|
127 |
submit.click(fn=voice_to_voice, inputs=audio_input, outputs=output_components, show_progress=True)
|
128 |
|
129 |
+
# Use a random port if the default one is unavailable
|
130 |
+
demo.launch(server_port=7860)
|