Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ os.system("pip install transformers==4.36.2")
|
|
7 |
|
8 |
# ε θΌ Hugging Face η樑ε
|
9 |
image_to_text_model = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
|
10 |
-
story_generator = pipeline("text-generation", model="facebook/opt-
|
11 |
|
12 |
# εη β ζεοΌηζζθΏ°οΌ
|
13 |
def img2text(image_path):
|
|
|
7 |
|
8 |
# ε θΌ Hugging Face η樑ε
|
9 |
image_to_text_model = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
|
10 |
+
story_generator = pipeline("text-generation", model="facebook/opt-1.3b")
|
11 |
|
12 |
# εη β ζεοΌηζζθΏ°οΌ
|
13 |
def img2text(image_path):
|