cosmo3769 commited on
Commit
71bddc2
1 Parent(s): 6fa656e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from PIL import Image
4
  import torch
5
 
6
  # Load model and processor
7
- model_id = "cosmo3769/finetuned_paligemma_vqav2_small_test1"
8
  model = PaliGemmaForConditionalGeneration.from_pretrained(model_id)
9
  processor = AutoProcessor.from_pretrained("google/paligemma-3b-pt-224")
10
 
@@ -41,4 +41,4 @@ demo = gr.Interface(fn=process_image, inputs=inputs, outputs=outputs, title="Fin
41
  description="Ask a question about an image")
42
 
43
  # Launch the app
44
- demo.launch()
 
4
  import torch
5
 
6
  # Load model and processor
7
+ model_id = "cosmo3769/finetuned_paligemma_vqav2_small"
8
  model = PaliGemmaForConditionalGeneration.from_pretrained(model_id)
9
  processor = AutoProcessor.from_pretrained("google/paligemma-3b-pt-224")
10
 
 
41
  description="Ask a question about an image")
42
 
43
  # Launch the app
44
+ demo.launch()