JSY8 commited on
Commit
dad8282
·
verified ·
1 Parent(s): 81d0728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,9 +12,9 @@ import re
12
  # Initialize pipelines with caching
13
  @st.cache_resource
14
  def load_pipelines():
15
- captioner = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
16
  storyer = pipeline("text-generation", model="gpt2")
17
- tts = pipeline("text-to-audio", model="facebook/musicgen-small")
18
  return captioner, storyer, tts
19
 
20
  captioner, storyer, tts = load_pipelines()
 
12
  # Initialize pipelines with caching
13
  @st.cache_resource
14
  def load_pipelines():
15
+ captioner = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
16
  storyer = pipeline("text-generation", model="gpt2")
17
+ tts = pipeline("text-to-speech", model="facebook/mms-tts-eng")
18
  return captioner, storyer, tts
19
 
20
  captioner, storyer, tts = load_pipelines()