Cachoups commited on
Commit
19fcbae
·
verified ·
1 Parent(s): d72a722

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -301,24 +301,8 @@ stored_paragraphs_2 = []
301
  stored_df1 = []
302
  stored_df2 = []
303
 
304
- # CSS for custom background colors
305
- custom_css = """
306
- <style>
307
- .pdf1-analysis {
308
- background-color: #f0f8ff; /* Light blue background for PDF1 */
309
- padding: 20px;
310
- border-radius: 10px;
311
- }
312
-
313
- .pdf2-analysis {
314
- background-color: #ffe4e1; /* Light pink background for PDF2 */
315
- padding: 20px;
316
- border-radius: 10px;
317
- }
318
- </style>"""
319
 
320
- with gr.Blocks() as demo:
321
- gr.HTML(custom_css)
322
 
323
  with gr.Tab("Methodology"):
324
  gr.Markdown("""
@@ -371,7 +355,6 @@ with gr.Blocks() as demo:
371
  with gr.Row():
372
  # PDF 1 Analysis section with custom background
373
  with gr.Column():
374
- gr.Markdown("<div class='pdf1-analysis'><h3>PDF 1 Analysis</h3></div>")
375
  gr.Markdown("### PDF 1 Analysis")
376
 
377
  selected_paragraph_1 = gr.Textbox(label="Selected Paragraph 1 Content", lines=4)
@@ -402,7 +385,6 @@ with gr.Blocks() as demo:
402
 
403
  # Process the selected paragraph from PDF 2
404
  with gr.Column():
405
- gr.Markdown("<div class='pdf2-analysis'><h3>PDF 2 Analysis</h3></div>")
406
  gr.Markdown("### PDF 2 Analysis")
407
 
408
  selected_paragraph_2 = gr.Textbox(label="Selected Paragraph 2 Content", lines=4)
 
301
  stored_df1 = []
302
  stored_df2 = []
303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
 
305
+ with gr.Blocks(theme='gradio/soft) as demo:
 
306
 
307
  with gr.Tab("Methodology"):
308
  gr.Markdown("""
 
355
  with gr.Row():
356
  # PDF 1 Analysis section with custom background
357
  with gr.Column():
 
358
  gr.Markdown("### PDF 1 Analysis")
359
 
360
  selected_paragraph_1 = gr.Textbox(label="Selected Paragraph 1 Content", lines=4)
 
385
 
386
  # Process the selected paragraph from PDF 2
387
  with gr.Column():
 
388
  gr.Markdown("### PDF 2 Analysis")
389
 
390
  selected_paragraph_2 = gr.Textbox(label="Selected Paragraph 2 Content", lines=4)