luke9705 commited on
Commit
3f79364
·
verified ·
1 Parent(s): 0d45718

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -68,12 +68,12 @@ def download_images(image_urls: str) -> list:
68
  print(f"Failed to download from {url}: {e}")
69
  return images
70
 
71
- @tool # since they gave us OpenAI API credits, we can keep using it
72
- def transcribe_audio(audio_path: str) -> str:
73
  """
74
  Transcribe audio file using OpenAI Whisper API.
75
  Args:
76
- audio_path (str): path to the audio file to be transcribed.
77
  Returns:
78
  str : Transcription of the audio.
79
  """
 
68
  print(f"Failed to download from {url}: {e}")
69
  return images
70
 
71
+ @tool
72
+ def transcribe_audio(audio_path: str) -> str: # since they gave us OpenAI API credits, we can keep using it
73
  """
74
  Transcribe audio file using OpenAI Whisper API.
75
  Args:
76
+ audio_path: path to the audio file to be transcribed.
77
  Returns:
78
  str : Transcription of the audio.
79
  """