Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ gemma_pipe = pipeline(
|
|
22 |
)
|
23 |
|
24 |
# Initialize the Bloom model
|
25 |
-
bloom_model = BloomForCausalLM.from_pretrained("bigscience/bloom-
|
26 |
-
bloom_tokenizer = BloomTokenizerFast.from_pretrained("bigscience/bloom-
|
27 |
|
28 |
def extract_text_from_pdf(pdf_file):
|
29 |
document = fitz.open(pdf_file)
|
@@ -122,4 +122,3 @@ iface = gr.Interface(
|
|
122 |
)
|
123 |
|
124 |
iface.launch()
|
125 |
-
|
|
|
22 |
)
|
23 |
|
24 |
# Initialize the Bloom model
|
25 |
+
bloom_model = BloomForCausalLM.from_pretrained("bigscience/bloom-560m")
|
26 |
+
bloom_tokenizer = BloomTokenizerFast.from_pretrained("bigscience/bloom-560m")
|
27 |
|
28 |
def extract_text_from_pdf(pdf_file):
|
29 |
document = fitz.open(pdf_file)
|
|
|
122 |
)
|
123 |
|
124 |
iface.launch()
|
|