Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,6 @@ with gr.Blocks() as demo:
|
|
| 116 |
# Wire it up
|
| 117 |
def on_convert(file, fmt):
|
| 118 |
output_file, output_filename = convert(file, fmt)
|
| 119 |
-
out.update(value=output_file, visible=True, file_name=output_filename) # Update file name and make visible
|
| 120 |
return output_file # Return file path for download
|
| 121 |
|
| 122 |
btn.click(on_convert, inputs=[inp, fmt], outputs=out)
|
|
|
|
| 116 |
# Wire it up
|
| 117 |
def on_convert(file, fmt):
|
| 118 |
output_file, output_filename = convert(file, fmt)
|
|
|
|
| 119 |
return output_file # Return file path for download
|
| 120 |
|
| 121 |
btn.click(on_convert, inputs=[inp, fmt], outputs=out)
|