gxy commited on
Commit
062ce8e
1 Parent(s): d06d643

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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')