Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,7 @@ except ImportError:
|
|
17 |
# Load the image captioning model
|
18 |
caption_model = pipeline("image-to-text", model="unography/blip-large-long-cap")
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
story_generator = pipeline("text-generation", model="isarth/distill_gpt2_story_generator")
|
23 |
|
24 |
|
25 |
def generate_caption(image):
|
|
|
17 |
# Load the image captioning model
|
18 |
caption_model = pipeline("image-to-text", model="unography/blip-large-long-cap")
|
19 |
|
20 |
+
story_generator = pipeline("text-generation", model="distilbert/distilgpt2")
|
|
|
|
|
21 |
|
22 |
|
23 |
def generate_caption(image):
|