PierreBrunelle commited on
Commit
c51c4cf
·
verified ·
1 Parent(s): 1a07e48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.Audio)
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: