Omnibus commited on
Commit
1d5c784
1 Parent(s): a85e152

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -15,8 +15,6 @@ driver_type = 'chromedriver'
15
  driver=False
16
  def run_script(html: str, style: str,height,width):
17
  uid=uuid.uuid4()
18
- font_col=font_col.strip("#")
19
- back_col=back_col.strip("#")
20
  html = html.replace("\n","<br>")
21
  #regex = r"^(https?://)"
22
  #is_url = re.search(regex, text)
@@ -82,7 +80,7 @@ with gr.Blocks() as app:
82
  with gr.Row():
83
  inp = gr.Textbox(label="URL",lines=1,value=html)
84
  with gr.Column():
85
- style = gr.Textbox(label="CSS",lines=8,max_lines=50,value=sty)
86
  with gr.Row():
87
  height=gr.Number(label="Height", value=4096)
88
  width=gr.Number(label="width",value=512)
 
15
  driver=False
16
  def run_script(html: str, style: str,height,width):
17
  uid=uuid.uuid4()
 
 
18
  html = html.replace("\n","<br>")
19
  #regex = r"^(https?://)"
20
  #is_url = re.search(regex, text)
 
80
  with gr.Row():
81
  inp = gr.Textbox(label="URL",lines=1,value=html)
82
  with gr.Column():
83
+ style = gr.Textbox(label="CSS")
84
  with gr.Row():
85
  height=gr.Number(label="Height", value=4096)
86
  width=gr.Number(label="width",value=512)