gopalagra commited on
Commit
c21f6db
·
verified ·
1 Parent(s): fee2e0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def text_to_audio_file(text):
43
  # Gradio interface: Caption + Audio
44
  # -------------------------------
45
  def generate_caption_tts(image):
46
- caption = generate_caption(model, processor, image)
47
  audio_file = text_to_audio_file(caption)
48
  return caption, audio_file # return file path, not BytesIO
49
 
 
43
  # Gradio interface: Caption + Audio
44
  # -------------------------------
45
  def generate_caption_tts(image):
46
+ caption = generate_caption_tts(model, processor, image)
47
  audio_file = text_to_audio_file(caption)
48
  return caption, audio_file # return file path, not BytesIO
49