XimMoreno commited on
Commit
91f8a8a
1 Parent(s): 8957122

Update app.py

Browse files

change in model

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,8 +6,8 @@ import os
6
 
7
  # PaliGemma settings
8
  access_token = os.getenv('HF_TOKEN')
9
- processor = AutoProcessor.from_pretrained("google/paligemma-3b-mix-224", token=access_token)
10
- model = AutoModelForPreTraining.from_pretrained("google/paligemma-3b-mix-224", token=access_token)
11
 
12
  def response_request(image,prompt):
13
  inputs = processor(prompt, image, return_tensors="pt")
@@ -25,7 +25,7 @@ iface = gr.Interface(
25
  outputs=[
26
  gr.Textbox(label="Response")
27
  ],
28
- title="PaliGemma (google/paligemma-3b-pt-896)"
29
  )
30
 
31
  iface.launch()
 
6
 
7
  # PaliGemma settings
8
  access_token = os.getenv('HF_TOKEN')
9
+ processor = AutoProcessor.from_pretrained("google/paligemma-3b-ft-vqav2-448", token=access_token)
10
+ model = AutoModelForPreTraining.from_pretrained("google/paligemma-3b-ft-vqav2-448", token=access_token)
11
 
12
  def response_request(image,prompt):
13
  inputs = processor(prompt, image, return_tensors="pt")
 
25
  outputs=[
26
  gr.Textbox(label="Response")
27
  ],
28
+ title="PaliGemma (google/paligemma-3b-ft-vqav2-448)"
29
  )
30
 
31
  iface.launch()