Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import torch
|
|
3 |
|
4 |
from transformers import Blip2Processor, Blip2ForConditionalGeneration
|
5 |
|
6 |
-
global device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
7 |
|
8 |
def load_caption_model():
|
9 |
# Quantization Config
|
|
|
3 |
|
4 |
from transformers import Blip2Processor, Blip2ForConditionalGeneration
|
5 |
|
|
|
6 |
|
7 |
def load_caption_model():
|
8 |
# Quantization Config
|