Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ from openai import OpenAI
|
|
| 3 |
from pathlib import Path
|
| 4 |
|
| 5 |
def generate_audio(text, api_key):
|
| 6 |
-
set_api_key(api_key)
|
| 7 |
client = OpenAI(api_key=api_key)
|
| 8 |
speech_file_path = Path(__file__).parent / "speech.mp3"
|
| 9 |
|
|
|
|
| 3 |
from pathlib import Path
|
| 4 |
|
| 5 |
def generate_audio(text, api_key):
|
|
|
|
| 6 |
client = OpenAI(api_key=api_key)
|
| 7 |
speech_file_path = Path(__file__).parent / "speech.mp3"
|
| 8 |
|