Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
# Import necessary libraries
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import elevenlabs
|
|
@@ -6,7 +5,7 @@ from elevenlabs import generate, play
|
|
| 6 |
import os
|
| 7 |
|
| 8 |
# Define the password for access
|
| 9 |
-
password = os.getenv("PASSWORD") # Password to access app
|
| 10 |
|
| 11 |
# Set the ElevenLabs API key using an environment variable
|
| 12 |
elevenlabs.api_key = os.getenv("ELEVENLABS_API_KEY") # authenticate to use elevenlabs account
|
|
@@ -47,7 +46,7 @@ iface = gr.Interface(
|
|
| 47 |
inputs=gr.Textbox(), # Input textbox for entering text
|
| 48 |
outputs=gr.Audio(), # Output audio element for playing the generated speech
|
| 49 |
live=False,
|
| 50 |
-
capture_session=True,
|
| 51 |
)
|
| 52 |
|
| 53 |
# Launch the Gradio app
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
import elevenlabs
|
|
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
# Define the password for access
|
| 8 |
+
#password = os.getenv("PASSWORD") # Password to access app
|
| 9 |
|
| 10 |
# Set the ElevenLabs API key using an environment variable
|
| 11 |
elevenlabs.api_key = os.getenv("ELEVENLABS_API_KEY") # authenticate to use elevenlabs account
|
|
|
|
| 46 |
inputs=gr.Textbox(), # Input textbox for entering text
|
| 47 |
outputs=gr.Audio(), # Output audio element for playing the generated speech
|
| 48 |
live=False,
|
| 49 |
+
#capture_session=True,
|
| 50 |
)
|
| 51 |
|
| 52 |
# Launch the Gradio app
|