Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def get_screenshot(chat,css=None):
|
|
47 |
#css = css
|
48 |
#hti.screenshot(html_str=html, save_as='red_page.png')
|
49 |
#hti.screenshot(html_str=html_card, css_str=css, save_as='red_page.png')
|
50 |
-
hti.screenshot(html_str=html, save_as='red_page.png')
|
51 |
return 'red_page.png',html
|
52 |
|
53 |
|
@@ -91,7 +91,7 @@ def chat_inf(system_prompt,prompt,history):
|
|
91 |
chat=[('user','bot'),('user','bot')]
|
92 |
|
93 |
#get_screenshot(chat=[('user','bot'),('user','bot')])
|
94 |
-
with gr.Blocks() as app:
|
95 |
with gr.Row():
|
96 |
with gr.Column(scale=3):
|
97 |
with gr.Group():
|
|
|
47 |
#css = css
|
48 |
#hti.screenshot(html_str=html, save_as='red_page.png')
|
49 |
#hti.screenshot(html_str=html_card, css_str=css, save_as='red_page.png')
|
50 |
+
hti.screenshot(html_str=html, css_str=css, save_as='red_page.png')
|
51 |
return 'red_page.png',html
|
52 |
|
53 |
|
|
|
91 |
chat=[('user','bot'),('user','bot')]
|
92 |
|
93 |
#get_screenshot(chat=[('user','bot'),('user','bot')])
|
94 |
+
with gr.Blocks(css=css) as app:
|
95 |
with gr.Row():
|
96 |
with gr.Column(scale=3):
|
97 |
with gr.Group():
|