Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,11 @@ css="""
|
|
10 |
background: #367bb9;
|
11 |
border-radius: 10px 0px 10px 10px;
|
12 |
padding: 10px;
|
13 |
-
margin-bottom: 10px;
|
14 |
max-width: 100%;
|
15 |
text-wrap: pretty;
|
|
|
|
|
|
|
16 |
}
|
17 |
.bot_chat{
|
18 |
background: #1c3c9b;
|
@@ -20,6 +22,7 @@ css="""
|
|
20 |
padding: 10px;
|
21 |
max-width: 100%;
|
22 |
text-wrap: pretty;
|
|
|
23 |
margin-bottom: 10px;
|
24 |
|
25 |
}
|
@@ -66,6 +69,7 @@ def get_screenshot(chat):
|
|
66 |
#css = css
|
67 |
#hti.screenshot(html_str=html, save_as='red_page.png')
|
68 |
#hti.screenshot(html_str=html_card, css_str=css, save_as='red_page.png')
|
|
|
69 |
hti.screenshot(html_str=html, css_str=css, save_as='red_page.png')
|
70 |
return 'red_page.png',html
|
71 |
|
|
|
10 |
background: #367bb9;
|
11 |
border-radius: 10px 0px 10px 10px;
|
12 |
padding: 10px;
|
|
|
13 |
max-width: 100%;
|
14 |
text-wrap: pretty;
|
15 |
+
margin-left:10px;
|
16 |
+
margin-bottom: 10px;
|
17 |
+
|
18 |
}
|
19 |
.bot_chat{
|
20 |
background: #1c3c9b;
|
|
|
22 |
padding: 10px;
|
23 |
max-width: 100%;
|
24 |
text-wrap: pretty;
|
25 |
+
margin-right:10px;
|
26 |
margin-bottom: 10px;
|
27 |
|
28 |
}
|
|
|
69 |
#css = css
|
70 |
#hti.screenshot(html_str=html, save_as='red_page.png')
|
71 |
#hti.screenshot(html_str=html_card, css_str=css, save_as='red_page.png')
|
72 |
+
hti.size = (500, 1000)
|
73 |
hti.screenshot(html_str=html, css_str=css, save_as='red_page.png')
|
74 |
return 'red_page.png',html
|
75 |
|