Spaces:
Runtime error
Runtime error
Cristiants
commited on
Commit
β’
15a56bc
1
Parent(s):
5b5257c
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import requests
|
|
2 |
from PIL import Image
|
3 |
from transformers import AutoProcessor, Blip2ForConditionalGeneration
|
4 |
import torch
|
|
|
5 |
|
6 |
processor = AutoProcessor.from_pretrained("Salesforce/blip2-opt-2.7b")
|
7 |
model = Blip2ForConditionalGeneration.from_pretrained("Salesforce/blip2-opt-2.7b", torch_dtype=torch.float16)
|
|
|
2 |
from PIL import Image
|
3 |
from transformers import AutoProcessor, Blip2ForConditionalGeneration
|
4 |
import torch
|
5 |
+
import gradio as gr
|
6 |
|
7 |
processor = AutoProcessor.from_pretrained("Salesforce/blip2-opt-2.7b")
|
8 |
model = Blip2ForConditionalGeneration.from_pretrained("Salesforce/blip2-opt-2.7b", torch_dtype=torch.float16)
|