Update README.md
Browse files
README.md
CHANGED
|
@@ -15,7 +15,26 @@ base_model:
|
|
| 15 |
pipeline_tag: image-to-text
|
| 16 |
library_name: transformers
|
| 17 |
tags:
|
| 18 |
-
- image-to-text
|
| 19 |
- image-captioning
|
| 20 |
-
- AI
|
| 21 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
pipeline_tag: image-to-text
|
| 16 |
library_name: transformers
|
| 17 |
tags:
|
| 18 |
+
- image-to-text
|
| 19 |
- image-captioning
|
| 20 |
+
- AI
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# 🧠 Image-to-Prompt Model
|
| 24 |
+
|
| 25 |
+
This is a simple and effective model that generates text prompts from uploaded images using BLIP + Transformers.
|
| 26 |
+
It uses `Salesforce/blip-image-captioning-base` under the hood and is optimized for use with Streamlit.
|
| 27 |
+
|
| 28 |
+
## 🔍 Example
|
| 29 |
+
|
| 30 |
+
> Upload an image of a mountain and get a prompt like:
|
| 31 |
+
> *“A scenic view of snowy mountains under a clear blue sky.”*
|
| 32 |
+
|
| 33 |
+
## 🧪 How to Use
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from model import ImagePromptModel
|
| 37 |
+
|
| 38 |
+
model = ImagePromptModel()
|
| 39 |
+
result = model.generate_prompt("your_image.jpg")
|
| 40 |
+
print(result)
|