Spaces:
Runtime error
Runtime error
update app
Browse files
app.py
CHANGED
@@ -229,7 +229,7 @@ def analyze_image(img, pdf, max_datapoints):
|
|
229 |
html = ("<br /><br /><br />").join(html_list)
|
230 |
else:
|
231 |
html = None
|
232 |
-
json_object = json.dumps(jsonl_out, indent = 4)
|
233 |
return [dp.viz(show_cells=False) for dp in dpts], layout_items_str, html, json_object
|
234 |
|
235 |
|
@@ -293,9 +293,9 @@ with demo:
|
|
293 |
with gr.Row():
|
294 |
with gr.Box():
|
295 |
gr.Markdown("<center><strong>JSON</strong></center>")
|
296 |
-
|
297 |
|
298 |
btn.click(fn=analyze_image, inputs=[inputs, inputs_pdf, max_imgs],
|
299 |
-
outputs=[gallery, image_text, html,
|
300 |
|
301 |
demo.launch()
|
|
|
229 |
html = ("<br /><br /><br />").join(html_list)
|
230 |
else:
|
231 |
html = None
|
232 |
+
json_object = json.dumps(jsonl_out, indent = 4)
|
233 |
return [dp.viz(show_cells=False) for dp in dpts], layout_items_str, html, json_object
|
234 |
|
235 |
|
|
|
293 |
with gr.Row():
|
294 |
with gr.Box():
|
295 |
gr.Markdown("<center><strong>JSON</strong></center>")
|
296 |
+
json_output = gr.JSON()
|
297 |
|
298 |
btn.click(fn=analyze_image, inputs=[inputs, inputs_pdf, max_imgs],
|
299 |
+
outputs=[gallery, image_text, html, json_output])
|
300 |
|
301 |
demo.launch()
|