Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,10 +12,18 @@ prompt = st.sidebar.text_input("Enter your prompt:", value='A penguin watching t
|
|
| 12 |
PAT = st.sidebar.text_input("Enter your Personal Access Token:", type="password")
|
| 13 |
|
| 14 |
# Authentication details (hide or secure this in production!)
|
|
|
|
| 15 |
USER_ID = 'openai'
|
| 16 |
APP_ID = 'tss'
|
| 17 |
MODEL_ID = 'openai-tts-1'
|
| 18 |
MODEL_VERSION_ID = 'fff6ce1fd487457da95b79241ac6f02d'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# Streamlit UI
|
| 21 |
st.title("Text to Speech Conversion")
|
|
|
|
| 12 |
PAT = st.sidebar.text_input("Enter your Personal Access Token:", type="password")
|
| 13 |
|
| 14 |
# Authentication details (hide or secure this in production!)
|
| 15 |
+
'''
|
| 16 |
USER_ID = 'openai'
|
| 17 |
APP_ID = 'tss'
|
| 18 |
MODEL_ID = 'openai-tts-1'
|
| 19 |
MODEL_VERSION_ID = 'fff6ce1fd487457da95b79241ac6f02d'
|
| 20 |
+
'''
|
| 21 |
+
|
| 22 |
+
USER_ID = 'eleven-labs'
|
| 23 |
+
APP_ID = 'audio-generation'
|
| 24 |
+
# Change these to whatever model and text URL you want to use
|
| 25 |
+
MODEL_ID = 'speech-synthesis'
|
| 26 |
+
MODEL_VERSION_ID = 'f2cead3a965f4c419a61a4a9b501095c'
|
| 27 |
|
| 28 |
# Streamlit UI
|
| 29 |
st.title("Text to Speech Conversion")
|