rishiraj commited on
Commit
558c701
1 Parent(s): 60d0ae5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -34,7 +34,7 @@ def use_pdf_extractor(pdf_filepath):
34
  pdf_data = f.read()
35
 
36
  content = Content(content_type="application/pdf", data=pdf_data)
37
- config = PDFExtractorConfig(output_types=["text", "table"])
38
 
39
  result = pdf_extractor.extract(content, config)
40
  return result
@@ -176,14 +176,14 @@ with gr.Blocks(title="PDF data extraction with Gemini & Indexify") as gemini_dem
176
  )
177
 
178
  pdf_file = gr.File(type="filepath")
179
-
180
- gr.HTML("<p><b>Step 2:</b> Enter your API key.</p>")
181
-
182
  key = gr.Textbox(
183
  info="Please enter your GEMINI_API_KEY",
184
  label="Key:"
185
  )
186
-
187
  with gr.Column():
188
  gr.HTML("<p><b>Step 3:</b> Run the extractor.</p>")
189
 
@@ -229,8 +229,8 @@ with gr.Blocks(title="PDF data extraction with OpenAI & Indexify") as openai_dem
229
  )
230
 
231
  pdf_file = gr.File(type="filepath")
232
-
233
- gr.HTML("<p><b>Step 2:</b> Enter your API key.</p>")
234
 
235
  key = gr.Textbox(
236
  info="Please enter your OPENAI_API_KEY",
 
34
  pdf_data = f.read()
35
 
36
  content = Content(content_type="application/pdf", data=pdf_data)
37
+ config = PDFExtractorConfig(output_types=["text", "table"])
38
 
39
  result = pdf_extractor.extract(content, config)
40
  return result
 
176
  )
177
 
178
  pdf_file = gr.File(type="filepath")
179
+
180
+ gr.HTML("<p><b>Step 2:</b> Enter your API key.</p>")
181
+
182
  key = gr.Textbox(
183
  info="Please enter your GEMINI_API_KEY",
184
  label="Key:"
185
  )
186
+
187
  with gr.Column():
188
  gr.HTML("<p><b>Step 3:</b> Run the extractor.</p>")
189
 
 
229
  )
230
 
231
  pdf_file = gr.File(type="filepath")
232
+
233
+ gr.HTML("<p><b>Step 2:</b> Enter your API key.</p>")
234
 
235
  key = gr.Textbox(
236
  info="Please enter your OPENAI_API_KEY",