rishiraj commited on
Commit
db98dd5
1 Parent(s): 1313043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -35,13 +35,13 @@ with gr.Blocks(title="PDF data extraction with Marker & Indexify") as marker_dem
35
  pdf_file_1 = gr.File(type="filepath")
36
  with gr.Column():
37
  gr.HTML("<p><b>Step 2:</b> Run the extractor.</p>")
38
- go_button = gr.Button(value="Run extractor", variant="primary")
39
  model_output_text_box_1 = gr.Textbox(label="Extractor Output", elem_id="model_output_text_box_1")
40
 
41
  with gr.Row():
42
  gr.HTML("<p style='text-align: center'>Developed with 🫶 by <a href='https://getindexify.ai/' target='_blank'>Indexify</a> | a <a href='https://www.tensorlake.ai/' target='_blank'>Tensorlake</a> product</p>")
43
 
44
- go_button.click(fn=use_marker, inputs=[pdf_file_1], outputs=[model_output_text_box_1])
45
 
46
  @spaces.GPU
47
  def use_pdf_extractor(pdf_filepath):
@@ -71,15 +71,15 @@ with gr.Blocks(title="PDF data extraction with PDF Extractor & Indexify") as pdf
71
  pdf_file_2 = gr.File(type="filepath")
72
  with gr.Column():
73
  gr.HTML("<p><b>Step 2:</b> Run the extractor.</p>")
74
- go_button = gr.Button(value="Run extractor", variant="primary")
75
  model_output_text_box_2 = gr.Textbox(label="Extractor Output", elem_id="model_output_text_box_2")
76
 
77
  with gr.Row():
78
  gr.HTML("<p style='text-align: center'>Developed with 🫶 by <a href='https://getindexify.ai/' target='_blank'>Indexify</a> | a <a href='https://www.tensorlake.ai/' target='_blank'>Tensorlake</a> product</p>")
79
 
80
- go_button.click(fn=use_pdf_extractor, inputs=[pdf_file_2], outputs=[model_output_text_box_2])
81
 
82
  demo = gr.TabbedInterface([marker_demo, pdf_demo], ["Marker Extractor", "PDF Extractor"], theme=gr.themes.Soft())
83
 
84
  demo.queue()
85
- demo.launch()
 
35
  pdf_file_1 = gr.File(type="filepath")
36
  with gr.Column():
37
  gr.HTML("<p><b>Step 2:</b> Run the extractor.</p>")
38
+ go_button_1 = gr.Button(value="Run extractor", variant="primary")
39
  model_output_text_box_1 = gr.Textbox(label="Extractor Output", elem_id="model_output_text_box_1")
40
 
41
  with gr.Row():
42
  gr.HTML("<p style='text-align: center'>Developed with 🫶 by <a href='https://getindexify.ai/' target='_blank'>Indexify</a> | a <a href='https://www.tensorlake.ai/' target='_blank'>Tensorlake</a> product</p>")
43
 
44
+ go_button_1.click(fn=use_marker, inputs=[pdf_file_1], outputs=[model_output_text_box_1])
45
 
46
  @spaces.GPU
47
  def use_pdf_extractor(pdf_filepath):
 
71
  pdf_file_2 = gr.File(type="filepath")
72
  with gr.Column():
73
  gr.HTML("<p><b>Step 2:</b> Run the extractor.</p>")
74
+ go_button_2 = gr.Button(value="Run extractor", variant="primary")
75
  model_output_text_box_2 = gr.Textbox(label="Extractor Output", elem_id="model_output_text_box_2")
76
 
77
  with gr.Row():
78
  gr.HTML("<p style='text-align: center'>Developed with 🫶 by <a href='https://getindexify.ai/' target='_blank'>Indexify</a> | a <a href='https://www.tensorlake.ai/' target='_blank'>Tensorlake</a> product</p>")
79
 
80
+ go_button_2.click(fn=use_pdf_extractor, inputs=[pdf_file_2], outputs=[model_output_text_box_2])
81
 
82
  demo = gr.TabbedInterface([marker_demo, pdf_demo], ["Marker Extractor", "PDF Extractor"], theme=gr.themes.Soft())
83
 
84
  demo.queue()
85
+ demo.launch()