Spaces:
Running
Running
fistyee
commited on
Commit
·
24392a5
1
Parent(s):
099ffc5
update
Browse files- app.py +2 -2
- html_image.py +5 -5
app.py
CHANGED
@@ -108,8 +108,8 @@ iface = gr.Interface(
|
|
108 |
outputs=[
|
109 |
gr.Textbox(label="Output Text", interactive=True), # Enable streaming in the output
|
110 |
gr.HTML(label="Video Viewer"),
|
111 |
-
|
112 |
-
gr.HTML()
|
113 |
],
|
114 |
live=False,
|
115 |
)
|
|
|
108 |
outputs=[
|
109 |
gr.Textbox(label="Output Text", interactive=True), # Enable streaming in the output
|
110 |
gr.HTML(label="Video Viewer"),
|
111 |
+
gr.Image(label="Image Viewer", type="filepath")
|
112 |
+
#gr.HTML()
|
113 |
],
|
114 |
live=False,
|
115 |
)
|
html_image.py
CHANGED
@@ -94,11 +94,11 @@ def render_abc(abc_string):
|
|
94 |
</html>
|
95 |
"""
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
return html_template
|
102 |
|
103 |
|
104 |
# Initialize the environment
|
|
|
94 |
</html>
|
95 |
"""
|
96 |
|
97 |
+
|
98 |
+
screenshot_path = html_to_image(html_template)
|
99 |
+
return screenshot_path
|
100 |
+
|
101 |
+
#return html_template
|
102 |
|
103 |
|
104 |
# Initialize the environment
|