Blane187 commited on
Commit
689b4fe
·
verified ·
1 Parent(s): dcac402

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- os.system("pip install yt-dlp -U")
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
- demo.launch()
 
 
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)