darshan8950 commited on
Commit
2ece00e
·
1 Parent(s): 7d30ed6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from lavis.models import load_model_and_preprocess
6
 
7
  # Load the Blip-Caption model
8
 
9
- model, vis_processors, _ = load_model_and_preprocess(name="blip_caption", model_type="base_coco", is_eval=True, device=device)
10
 
11
  # Define the input and output functions for Gradio
12
  def generate_caption(image_file):
 
6
 
7
  # Load the Blip-Caption model
8
 
9
+ model, vis_processors, _ = load_model_and_preprocess(name="blip_caption", model_type="base_coco", is_eval=True)
10
 
11
  # Define the input and output functions for Gradio
12
  def generate_caption(image_file):