Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -131,6 +131,7 @@ with gr.Blocks(title="PDF data extraction with PDF Extractor & Indexify") as pdf
|
|
131 |
outputs = [model_output_text_box]
|
132 |
)
|
133 |
|
|
|
134 |
def use_gemini(pdf_filepath, key):
|
135 |
if pdf_filepath is None:
|
136 |
raise gr.Error("Please provide some input PDF: upload an PDF file")
|
@@ -197,6 +198,7 @@ with gr.Blocks(title="PDF data extraction with Gemini & Indexify") as gemini_dem
|
|
197 |
outputs = [model_output_text_box]
|
198 |
)
|
199 |
|
|
|
200 |
def use_openai(pdf_filepath, key):
|
201 |
if pdf_filepath is None:
|
202 |
raise gr.Error("Please provide some input PDF: upload an PDF file")
|
|
|
131 |
outputs = [model_output_text_box]
|
132 |
)
|
133 |
|
134 |
+
@spaces.GPU
|
135 |
def use_gemini(pdf_filepath, key):
|
136 |
if pdf_filepath is None:
|
137 |
raise gr.Error("Please provide some input PDF: upload an PDF file")
|
|
|
198 |
outputs = [model_output_text_box]
|
199 |
)
|
200 |
|
201 |
+
@spaces.GPU
|
202 |
def use_openai(pdf_filepath, key):
|
203 |
if pdf_filepath is None:
|
204 |
raise gr.Error("Please provide some input PDF: upload an PDF file")
|