Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from PIL import Image
|
3 |
import requests
|
4 |
import torch
|
|
|
5 |
from transformers import BlipForConditionalGeneration, BlipProcessor, GenerationConfig
|
6 |
|
7 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
2 |
from PIL import Image
|
3 |
import requests
|
4 |
import torch
|
5 |
+
import os
|
6 |
from transformers import BlipForConditionalGeneration, BlipProcessor, GenerationConfig
|
7 |
|
8 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|