Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -422,7 +422,7 @@ def summarize(inp,history,data=None,files=None,directory=None,url=None,pdf_url=N
|
|
| 422 |
inp = "Process this data"
|
| 423 |
history.clear()
|
| 424 |
history = [(inp,"Working on it...")]
|
| 425 |
-
yield "",history,chart_out,chart_out,json_box
|
| 426 |
|
| 427 |
if pdf_batch.startswith("http"):
|
| 428 |
lab="PDF Batch"
|
|
@@ -485,7 +485,7 @@ def summarize(inp,history,data=None,files=None,directory=None,url=None,pdf_url=N
|
|
| 485 |
if data != "Error" and data != "":
|
| 486 |
history.clear()
|
| 487 |
history = [(inp,f"Data: Loaded, processing...")]
|
| 488 |
-
yield "",history,chart_out,chart_out,json_box
|
| 489 |
|
| 490 |
print(inp)
|
| 491 |
out = str(data)
|
|
@@ -504,7 +504,7 @@ def summarize(inp,history,data=None,files=None,directory=None,url=None,pdf_url=N
|
|
| 504 |
print (e)
|
| 505 |
history.clear()
|
| 506 |
history = [(inp,"Building Chart...")]
|
| 507 |
-
yield "",history,chart_out,chart_out,json_out
|
| 508 |
|
| 509 |
|
| 510 |
chart_out = get_chart(str(json_out))
|
|
|
|
| 422 |
inp = "Process this data"
|
| 423 |
history.clear()
|
| 424 |
history = [(inp,"Working on it...")]
|
| 425 |
+
yield "",history,chart_out,chart_out,json_box,""
|
| 426 |
|
| 427 |
if pdf_batch.startswith("http"):
|
| 428 |
lab="PDF Batch"
|
|
|
|
| 485 |
if data != "Error" and data != "":
|
| 486 |
history.clear()
|
| 487 |
history = [(inp,f"Data: Loaded, processing...")]
|
| 488 |
+
yield "",history,chart_out,chart_out,json_box,""
|
| 489 |
|
| 490 |
print(inp)
|
| 491 |
out = str(data)
|
|
|
|
| 504 |
print (e)
|
| 505 |
history.clear()
|
| 506 |
history = [(inp,"Building Chart...")]
|
| 507 |
+
yield "",history,chart_out,chart_out,json_out,""
|
| 508 |
|
| 509 |
|
| 510 |
chart_out = get_chart(str(json_out))
|