Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def create_prompt(top_k_list: list[dict], question: str) -> str:
|
|
| 40 |
QUESTION:
|
| 41 |
{question}'''
|
| 42 |
|
| 43 |
-
@pxt.udf(return_type=pxt.
|
| 44 |
def generate_audio(script: str, voice: str, api_key: str):
|
| 45 |
"""Generate audio from text using OpenAI's API"""
|
| 46 |
if not script or not voice:
|
|
|
|
| 40 |
QUESTION:
|
| 41 |
{question}'''
|
| 42 |
|
| 43 |
+
@pxt.udf(return_type=pxt.AudioType())
|
| 44 |
def generate_audio(script: str, voice: str, api_key: str):
|
| 45 |
"""Generate audio from text using OpenAI's API"""
|
| 46 |
if not script or not voice:
|