Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -361,7 +361,7 @@ def process(files,button):
|
|
| 361 |
cleaned_names = []
|
| 362 |
if files is None:
|
| 363 |
msg = 'No file provided'+fail
|
| 364 |
-
return None,
|
| 365 |
|
| 366 |
names = unzip_files(files.name)
|
| 367 |
|
|
@@ -428,7 +428,7 @@ def process(files,button):
|
|
| 428 |
else:
|
| 429 |
final_file = None
|
| 430 |
msg = '\n'.join(status)
|
| 431 |
-
return gr.File.update(value=final_file,visible=True),
|
| 432 |
#return(str(files)+'fole')
|
| 433 |
|
| 434 |
with gr.Blocks(css=None) as demo:
|
|
@@ -475,7 +475,7 @@ with gr.Blocks(css=None) as demo:
|
|
| 475 |
with gr.Row():
|
| 476 |
out = gr.File(label='Cleaned files',visible=False)
|
| 477 |
with gr.Row():
|
| 478 |
-
log = gr.Textbox(label='Process log 📄',visible=
|
| 479 |
|
| 480 |
bt.click(fn = process, inputs=[inp,bt], outputs=[out,log])
|
| 481 |
|
|
|
|
| 361 |
cleaned_names = []
|
| 362 |
if files is None:
|
| 363 |
msg = 'No file provided'+fail
|
| 364 |
+
return None, msg
|
| 365 |
|
| 366 |
names = unzip_files(files.name)
|
| 367 |
|
|
|
|
| 428 |
else:
|
| 429 |
final_file = None
|
| 430 |
msg = '\n'.join(status)
|
| 431 |
+
return gr.File.update(value=final_file,visible=True),msg
|
| 432 |
#return(str(files)+'fole')
|
| 433 |
|
| 434 |
with gr.Blocks(css=None) as demo:
|
|
|
|
| 475 |
with gr.Row():
|
| 476 |
out = gr.File(label='Cleaned files',visible=False)
|
| 477 |
with gr.Row():
|
| 478 |
+
log = gr.Textbox(label='Process log 📄',visible=True)
|
| 479 |
|
| 480 |
bt.click(fn = process, inputs=[inp,bt], outputs=[out,log])
|
| 481 |
|