robertselvam commited on
Commit
89fa8e9
1 Parent(s): afcf7a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -6,7 +6,7 @@ import openai
6
  from pdftojson import PdftoJson
7
  import gradio as gr
8
 
9
- with gr.Blocks(css="style.css",theme='karthikeyan-adople/hudsonhayes-gray') as demo:
10
  gr.HTML(
11
  """<hr style="border-top: 5px solid white;">"""
12
  )
@@ -48,12 +48,12 @@ with gr.Blocks(css="style.css",theme='karthikeyan-adople/hudsonhayes-gray') as d
48
 
49
  clauses_btn.click(Clauses.get_extracted_clauses,summary,clauses)
50
 
51
- with gr.Tab("pdf to json"):
52
- with gr.Column(elem_id = "col-container"):
53
- pdf_to_json_btn = gr.Button("pdf to json Extracter")
54
- pdf_to_json = gr.Textbox(label = "Pdf to Json")
55
 
56
- pdf_to_json_btn.click(PdftoJson.extract_text_from_pdf,upload_button,pdf_to_json)
57
 
58
 
59
  demo.launch(debug=True)
 
6
  from pdftojson import PdftoJson
7
  import gradio as gr
8
 
9
+ with gr.Blocks(css="style.css",theme='xiaobaiyuan/theme_brief') as demo:
10
  gr.HTML(
11
  """<hr style="border-top: 5px solid white;">"""
12
  )
 
48
 
49
  clauses_btn.click(Clauses.get_extracted_clauses,summary,clauses)
50
 
51
+ # with gr.Tab("pdf to json"):
52
+ # with gr.Column(elem_id = "col-container"):
53
+ # pdf_to_json_btn = gr.Button("pdf to json Extracter")
54
+ # pdf_to_json = gr.Textbox(label = "Pdf to Json")
55
 
56
+ # pdf_to_json_btn.click(PdftoJson.extract_text_from_pdf,upload_button,pdf_to_json)
57
 
58
 
59
  demo.launch(debug=True)