Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -230,6 +230,7 @@ def compress_data_og(c, instruct, history):
|
|
230 |
def summarize(inp,history,report_check,sum_mem_check,data=None):
|
231 |
json_box=[]
|
232 |
error_box=""
|
|
|
233 |
if inp == "":
|
234 |
inp = "Process this data"
|
235 |
history.clear()
|
@@ -310,6 +311,6 @@ with gr.Blocks() as app:
|
|
310 |
url_btn.click(dl,[inp_url,vid],vid)
|
311 |
trans_btn.click(transcribe,[vid,lang,sz],trans)
|
312 |
clear_btn.click(clear_fn,None,[prompt,chatbot])
|
313 |
-
go=button.click(summarize,[prompt,chatbot,report_check,sum_mem_check],[prompt,chatbot,e_box,json_out])
|
314 |
stop_button.click(None,None,None,cancels=[go])
|
315 |
app.queue(default_concurrency_limit=20).launch(show_api=False)
|
|
|
230 |
def summarize(inp,history,report_check,sum_mem_check,data=None):
|
231 |
json_box=[]
|
232 |
error_box=""
|
233 |
+
json_out=""
|
234 |
if inp == "":
|
235 |
inp = "Process this data"
|
236 |
history.clear()
|
|
|
311 |
url_btn.click(dl,[inp_url,vid],vid)
|
312 |
trans_btn.click(transcribe,[vid,lang,sz],trans)
|
313 |
clear_btn.click(clear_fn,None,[prompt,chatbot])
|
314 |
+
go=button.click(summarize,[prompt,chatbot,report_check,sum_mem_check,trans],[prompt,chatbot,e_box,json_out])
|
315 |
stop_button.click(None,None,None,cancels=[go])
|
316 |
app.queue(default_concurrency_limit=20).launch(show_api=False)
|