Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ gemma_pipe = pipeline(
|
|
13 |
"text-generation",
|
14 |
model="google/gemma-2-27b-it",
|
15 |
model_kwargs={"torch_dtype": torch.bfloat16},
|
16 |
-
device="
|
17 |
)
|
18 |
|
19 |
def extract_text_from_pdf(pdf_file):
|
|
|
13 |
"text-generation",
|
14 |
model="google/gemma-2-27b-it",
|
15 |
model_kwargs={"torch_dtype": torch.bfloat16},
|
16 |
+
device="cpu"
|
17 |
)
|
18 |
|
19 |
def extract_text_from_pdf(pdf_file):
|