Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,8 @@ from transformers import pipeline
|
|
| 5 |
import tempfile
|
| 6 |
import os
|
| 7 |
|
|
|
|
|
|
|
| 8 |
# Function to generate image caption
|
| 9 |
def generate_image_caption(image_path):
|
| 10 |
"""Generates a caption for the given image using a pre-trained model."""
|
|
|
|
| 5 |
import tempfile
|
| 6 |
import os
|
| 7 |
|
| 8 |
+
%pip install -r requirements.txt
|
| 9 |
+
|
| 10 |
# Function to generate image caption
|
| 11 |
def generate_image_caption(image_path):
|
| 12 |
"""Generates a caption for the given image using a pre-trained model."""
|