Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,10 @@ def get_concat_v_cut(in1, in2):
|
|
| 33 |
dst.paste(im2, (0, im1.height))
|
| 34 |
return dst
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
def run_script(url: str, height: int, width: int, check_b,check_h):
|
| 39 |
mes_box=[]
|
|
@@ -58,7 +61,7 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
|
|
| 58 |
|
| 59 |
driver.set_window_size(int(width), int(height))
|
| 60 |
page = driver.find_element(By.TAG_NAME, "html")
|
| 61 |
-
driver.execute_script("arguments[0].style=
|
| 62 |
print (dir(page))
|
| 63 |
#page.send_keys('theme','gab-black')
|
| 64 |
dk=page.get_attribute('theme')
|
|
|
|
| 33 |
dst.paste(im2, (0, im1.height))
|
| 34 |
return dst
|
| 35 |
|
| 36 |
+
css_="""
|
| 37 |
+
--text_color_primary: #ffffff;
|
| 38 |
+
--solid_color_bubble: #2c3d7d;
|
| 39 |
+
"""
|
| 40 |
|
| 41 |
def run_script(url: str, height: int, width: int, check_b,check_h):
|
| 42 |
mes_box=[]
|
|
|
|
| 61 |
|
| 62 |
driver.set_window_size(int(width), int(height))
|
| 63 |
page = driver.find_element(By.TAG_NAME, "html")
|
| 64 |
+
driver.execute_script(f"arguments[0].style={css_};",page)
|
| 65 |
print (dir(page))
|
| 66 |
#page.send_keys('theme','gab-black')
|
| 67 |
dk=page.get_attribute('theme')
|