Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def get_concat_v_cut(in1, in2):
|
|
| 33 |
dst.paste(im2, (0, im1.height))
|
| 34 |
return dst
|
| 35 |
|
| 36 |
-
css_="""--solid_color_primary: #132241;--text_color_primary: #ffffff;--solid_color_bubble: #2c3d7d;--solid_color_tertiary: #223e69;--solid_color_block: #1a1f23;"""
|
| 37 |
css_bub="""padding: 20px!important;"""
|
| 38 |
def run_script(url: str, height: int, width: int, check_b,check_h):
|
| 39 |
mes_box=[]
|
|
@@ -77,6 +77,10 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
|
|
| 77 |
obj = driver.find_element(By.CLASS_NAME, "main")
|
| 78 |
messages = driver.find_elements(By.CLASS_NAME, "message")
|
| 79 |
message_css = driver.find_element(By.CSS_SELECTOR, ".message-bubble")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
driver.execute_script(f"arguments[0].style='{css_bub}';",message_css)
|
| 81 |
|
| 82 |
#print (len(messages))
|
|
|
|
| 33 |
dst.paste(im2, (0, im1.height))
|
| 34 |
return dst
|
| 35 |
|
| 36 |
+
css_="""--solid_color_primary: #132241;--text_color_primary: #ffffff;--solid_color_bubble: #2c3d7d;--solid_color_tertiary: #223e69;--solid_color_block: #1a1f23;--border_color_secondary: #00007d;"""
|
| 37 |
css_bub="""padding: 20px!important;"""
|
| 38 |
def run_script(url: str, height: int, width: int, check_b,check_h):
|
| 39 |
mes_box=[]
|
|
|
|
| 77 |
obj = driver.find_element(By.CLASS_NAME, "main")
|
| 78 |
messages = driver.find_elements(By.CLASS_NAME, "message")
|
| 79 |
message_css = driver.find_element(By.CSS_SELECTOR, ".message-bubble")
|
| 80 |
+
print(message_css.text)
|
| 81 |
+
#page.get_attribute('theme')
|
| 82 |
+
|
| 83 |
+
|
| 84 |
driver.execute_script(f"arguments[0].style='{css_bub}';",message_css)
|
| 85 |
|
| 86 |
#print (len(messages))
|