Omnibus commited on
Commit
74397af
1 Parent(s): c809540

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -14,6 +14,8 @@ from selenium.webdriver.common.by import By
14
  driver_type = 'chromedriver'
15
  driver=False
16
  def run_script(html: str, style: str,font_col,back_col):
 
 
17
  html = html.replace("\n","<br>")
18
  #regex = r"^(https?://)"
19
  #is_url = re.search(regex, text)
@@ -79,8 +81,8 @@ with gr.Blocks() as app:
79
  with gr.Column():
80
  style = gr.Textbox(label="CSS",lines=8,max_lines=50,value=sty)
81
  with gr.Row():
82
- font_col=gr.ColorPicker("Font Color",value="Black")
83
- back_col=gr.ColorPicker(label="Background Color",value="White")
84
  btn= gr.Button()
85
  with gr.Row():
86
  with gr.Column():
 
14
  driver_type = 'chromedriver'
15
  driver=False
16
  def run_script(html: str, style: str,font_col,back_col):
17
+ font_col=font_col.strip("#")
18
+ back_col=back_col.strip("#")
19
  html = html.replace("\n","<br>")
20
  #regex = r"^(https?://)"
21
  #is_url = re.search(regex, text)
 
81
  with gr.Column():
82
  style = gr.Textbox(label="CSS",lines=8,max_lines=50,value=sty)
83
  with gr.Row():
84
+ font_col=gr.ColorPicker("Font Color",value="#000000")
85
+ back_col=gr.ColorPicker(label="Background Color",value="#ffffff")
86
  btn= gr.Button()
87
  with gr.Row():
88
  with gr.Column():