Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
1littlecoder
commited on
Commit
•
b326bed
1
Parent(s):
eaa3157
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import json
|
|
4 |
import os
|
5 |
|
6 |
# Replace with your actual Play.ht API key and User ID
|
7 |
-
API_KEY =
|
8 |
-
USER_ID =
|
9 |
|
10 |
# Function to interact with Play.ht API
|
11 |
def text_to_audio(text):
|
|
|
4 |
import os
|
5 |
|
6 |
# Replace with your actual Play.ht API key and User ID
|
7 |
+
API_KEY = os.getenv('PLAY_API_KEY')
|
8 |
+
USER_ID = os.getenv('PLAY_USER_ID')
|
9 |
|
10 |
# Function to interact with Play.ht API
|
11 |
def text_to_audio(text):
|