Guiyom commited on
Commit
b3e2ea8
·
verified ·
1 Parent(s): 0ef1866

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -12,9 +12,6 @@ from datetime import datetime
12
  from reportlab.lib.pagesizes import A4
13
  from xhtml2pdf import pisa
14
  from bs4.element import Tag
15
- from selenium import webdriver
16
- from selenium.webdriver.chrome.options import Options
17
- from selenium.common.exceptions import WebDriverException
18
 
19
  # ============================================================================= Global Settings
20
  MAX_MESSAGE_LENGTH = 1048576
@@ -2954,6 +2951,10 @@ def validate_visual_html(html: str) -> bool:
2954
  return all(checks)
2955
 
2956
  class ReportGenerator:
 
 
 
 
2957
  def __init__(self, render_with_selenium: bool = False):
2958
  # Flag to determine if we are rendering the final PDF using Selenium
2959
  self.render_with_selenium = render_with_selenium
 
12
  from reportlab.lib.pagesizes import A4
13
  from xhtml2pdf import pisa
14
  from bs4.element import Tag
 
 
 
15
 
16
  # ============================================================================= Global Settings
17
  MAX_MESSAGE_LENGTH = 1048576
 
2951
  return all(checks)
2952
 
2953
  class ReportGenerator:
2954
+ from selenium import webdriver
2955
+ from selenium.webdriver.chrome.options import Options
2956
+ from selenium.common.exceptions import WebDriverException
2957
+
2958
  def __init__(self, render_with_selenium: bool = False):
2959
  # Flag to determine if we are rendering the final PDF using Selenium
2960
  self.render_with_selenium = render_with_selenium