Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -404,7 +404,7 @@ def mm(graph):
|
|
404 |
out_html=f'''<div><iframe src="https://omnibus-mermaid-script.static.hf.space/index.html?mermaid={code_out}" height="500" width="500"></iframe></div>'''
|
405 |
return out_html
|
406 |
|
407 |
-
def summarize(inp,history,
|
408 |
json_box=[]
|
409 |
chart_out=""
|
410 |
if inp == "":
|
@@ -524,7 +524,7 @@ with gr.Blocks() as app:
|
|
524 |
clear_btn.click(clear_fn,None,[prompt,chatbot])
|
525 |
|
526 |
#go=button.click(summarize,[prompt,chatbot,report_check,chart_check,data,file,directory,url,pdf_url,pdf_batch],[prompt,chatbot,e_box,json_out])
|
527 |
-
go=button.click(summarize,[prompt,chatbot,
|
528 |
|
529 |
stop_button.click(None,None,None,cancels=[go])
|
530 |
app.queue(default_concurrency_limit=20).launch(show_api=False)
|
|
|
404 |
out_html=f'''<div><iframe src="https://omnibus-mermaid-script.static.hf.space/index.html?mermaid={code_out}" height="500" width="500"></iframe></div>'''
|
405 |
return out_html
|
406 |
|
407 |
+
def summarize(inp,history,data=None,files=None,directory=None,url=None,pdf_url=None,pdf_batch=None):
|
408 |
json_box=[]
|
409 |
chart_out=""
|
410 |
if inp == "":
|
|
|
524 |
clear_btn.click(clear_fn,None,[prompt,chatbot])
|
525 |
|
526 |
#go=button.click(summarize,[prompt,chatbot,report_check,chart_check,data,file,directory,url,pdf_url,pdf_batch],[prompt,chatbot,e_box,json_out])
|
527 |
+
go=button.click(summarize,[prompt,chatbot,data,file,directory,url,pdf_url,pdf_batch],[prompt,chatbot,m_box,e_box,json_out])
|
528 |
|
529 |
stop_button.click(None,None,None,cancels=[go])
|
530 |
app.queue(default_concurrency_limit=20).launch(show_api=False)
|