Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -356,8 +356,8 @@ def summarize(inp,history,data=None,files=None,url=None,pdf_url=None,pdf_batch=N
|
|
356 |
json_out = compress_data(c,inp,out)
|
357 |
#json_box.append(json_out)
|
358 |
|
359 |
-
json_object = json.dumps(json_out, indent=4)
|
360 |
-
json_box.append(
|
361 |
# Writing to sample.json
|
362 |
#with open("tmp.json", "w") as outfile:
|
363 |
# outfile.write(json_object)
|
@@ -411,7 +411,7 @@ with gr.Blocks() as app:
|
|
411 |
pdf_url = gr.Textbox(label="PDF URL")
|
412 |
with gr.Tab("PDF Batch"):
|
413 |
pdf_batch = gr.Textbox(label="PDF Batch (comma separated)")
|
414 |
-
json_out=gr.
|
415 |
e_box=gr.Textbox()
|
416 |
#text=gr.JSON()
|
417 |
#inp_query.change(search_models,inp_query,models_dd)
|
|
|
356 |
json_out = compress_data(c,inp,out)
|
357 |
#json_box.append(json_out)
|
358 |
|
359 |
+
#json_object = json.dumps(json_out, indent=4)
|
360 |
+
json_box.append(json_out)
|
361 |
# Writing to sample.json
|
362 |
#with open("tmp.json", "w") as outfile:
|
363 |
# outfile.write(json_object)
|
|
|
411 |
pdf_url = gr.Textbox(label="PDF URL")
|
412 |
with gr.Tab("PDF Batch"):
|
413 |
pdf_batch = gr.Textbox(label="PDF Batch (comma separated)")
|
414 |
+
json_out=gr.JSON()
|
415 |
e_box=gr.Textbox()
|
416 |
#text=gr.JSON()
|
417 |
#inp_query.change(search_models,inp_query,models_dd)
|