Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ st.set_page_config(page_title="Storytelling Friend",
|
|
| 12 |
uploaded_file = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"]) # User uploads an image
|
| 13 |
|
| 14 |
# Load the image captioning model
|
| 15 |
-
caption_model = pipeline("image-captioning", model="
|
| 16 |
|
| 17 |
# Load the text generation model
|
| 18 |
story_model = pipeline("text-generation", model="gpt2") # Load a text generation model
|
|
|
|
| 12 |
uploaded_file = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"]) # User uploads an image
|
| 13 |
|
| 14 |
# Load the image captioning model
|
| 15 |
+
caption_model = pipeline("image-captioning", model="Salesforce/blip-image-captioning-large") # Load pre-trained model
|
| 16 |
|
| 17 |
# Load the text generation model
|
| 18 |
story_model = pipeline("text-generation", model="gpt2") # Load a text generation model
|