Spaces:
Running
on
Zero
Running
on
Zero
p3nguknight
commited on
Commit
•
1756157
1
Parent(s):
27b9b37
Increase duration
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def pixtral_inference(
|
|
84 |
return result
|
85 |
|
86 |
|
87 |
-
@spaces.GPU(duration=
|
88 |
def retrieve(query: str, ds, images, k):
|
89 |
if len(images) == 0:
|
90 |
raise gr.Error("No docs/images for retrieval")
|
@@ -136,7 +136,7 @@ def convert_files(files):
|
|
136 |
return images
|
137 |
|
138 |
|
139 |
-
@spaces.GPU(duration=
|
140 |
def index_gpu(images, ds):
|
141 |
model = ColPali.from_pretrained(
|
142 |
COLPALI_GEMMA_MODEL_PATH,
|
|
|
84 |
return result
|
85 |
|
86 |
|
87 |
+
@spaces.GPU(duration=60)
|
88 |
def retrieve(query: str, ds, images, k):
|
89 |
if len(images) == 0:
|
90 |
raise gr.Error("No docs/images for retrieval")
|
|
|
136 |
return images
|
137 |
|
138 |
|
139 |
+
@spaces.GPU(duration=60)
|
140 |
def index_gpu(images, ds):
|
141 |
model = ColPali.from_pretrained(
|
142 |
COLPALI_GEMMA_MODEL_PATH,
|