fistyee commited on
Commit
099ffc5
·
1 Parent(s): 1cc3f2c
Files changed (2) hide show
  1. app.py +2 -1
  2. html_image.py +5 -3
app.py CHANGED
@@ -108,7 +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
- gr.Image(label="Image Viewer", type="filepath")
 
112
  ],
113
  live=False,
114
  )
 
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,9 +94,11 @@ def render_abc(abc_string):
94
  </html>
95
  """
96
 
97
- screenshot_path = html_to_image(html_template)
98
- print(screenshot_path)
99
- return screenshot_path
 
 
100
 
101
 
102
  # Initialize the environment
 
94
  </html>
95
  """
96
 
97
+ # return html to image
98
+ #screenshot_path = html_to_image(html_template)
99
+ #return screenshot_path
100
+ # return html
101
+ return html_template
102
 
103
 
104
  # Initialize the environment