Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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-
|
16 |
storyer = pipeline("text-generation", model="gpt2")
|
17 |
-
tts = pipeline("text-to-
|
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()
|