Spaces:
Sleeping
Sleeping
changes in the model
Browse files
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-
|
10 |
-
model = AutoModelForPreTraining.from_pretrained("google/paligemma-3b-
|
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-
|
29 |
)
|
30 |
|
31 |
iface.launch()
|
|
|
6 |
|
7 |
# PaliGemma settings
|
8 |
access_token = os.getenv('HF_TOKEN')
|
9 |
+
processor = AutoProcessor.from_pretrained("google/paligemma-3b-pt-896", token=access_token)
|
10 |
+
model = AutoModelForPreTraining.from_pretrained("google/paligemma-3b-pt-896", 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-pt-896)"
|
29 |
)
|
30 |
|
31 |
iface.launch()
|