Spaces:
Sleeping
Sleeping
updated app
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ from PIL import Image
|
|
4 |
import torch
|
5 |
|
6 |
# Example with BLIP (replace with your fine-tuned model)
|
7 |
-
processor = BlipProcessor.from_pretrained("
|
8 |
-
model = BlipForConditionalGeneration.from_pretrained("
|
9 |
|
10 |
def caption_image(image):
|
11 |
if image is None:
|
|
|
4 |
import torch
|
5 |
|
6 |
# Example with BLIP (replace with your fine-tuned model)
|
7 |
+
processor = BlipProcessor.from_pretrained("zeddotes/blip-computer-thoughts")
|
8 |
+
model = BlipForConditionalGeneration.from_pretrained("zeddotes/blip-computer-thoughts")
|
9 |
|
10 |
def caption_image(image):
|
11 |
if image is None:
|