Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -527,13 +527,13 @@ def summarize(inp,history,data=None,files=None,directory=None,url=None,pdf_url=N
|
|
527 |
break
|
528 |
|
529 |
|
530 |
-
chart_html=mm(line_out,1)
|
531 |
#print(chart_out)
|
532 |
else:
|
533 |
rawp = "Provide a valid data source"
|
534 |
history.clear()
|
535 |
history.append((inp,chart_out))
|
536 |
-
yield "", history,chart_html,line_out,json_out
|
537 |
|
538 |
#################################
|
539 |
def clear_fn():
|
@@ -609,7 +609,7 @@ with gr.Blocks() as app:
|
|
609 |
clear_btn.click(clear_fn,None,[prompt,chatbot])
|
610 |
|
611 |
#go=button.click(summarize,[prompt,chatbot,report_check,chart_check,data,file,directory,url,pdf_url,pdf_batch],[prompt,chatbot,e_box,json_out])
|
612 |
-
go=button.click(summarize,[prompt,chatbot,data,file,directory,url,pdf_url,pdf_batch],[prompt,chatbot,m_box,e_box,json_out])
|
613 |
|
614 |
stop_button.click(None,None,None,cancels=[go])
|
615 |
app.queue(default_concurrency_limit=20).launch(show_api=False)
|
|
|
527 |
break
|
528 |
|
529 |
|
530 |
+
chart_html,chart_url=mm(line_out,1)
|
531 |
#print(chart_out)
|
532 |
else:
|
533 |
rawp = "Provide a valid data source"
|
534 |
history.clear()
|
535 |
history.append((inp,chart_out))
|
536 |
+
yield "", history,chart_html,line_out,json_out,chart_url
|
537 |
|
538 |
#################################
|
539 |
def clear_fn():
|
|
|
609 |
clear_btn.click(clear_fn,None,[prompt,chatbot])
|
610 |
|
611 |
#go=button.click(summarize,[prompt,chatbot,report_check,chart_check,data,file,directory,url,pdf_url,pdf_batch],[prompt,chatbot,e_box,json_out])
|
612 |
+
go=button.click(summarize,[prompt,chatbot,data,file,directory,url,pdf_url,pdf_batch],[prompt,chatbot,m_box,e_box,json_out,url_box])
|
613 |
|
614 |
stop_button.click(None,None,None,cancels=[go])
|
615 |
app.queue(default_concurrency_limit=20).launch(show_api=False)
|