Spaces:
Sleeping
Sleeping
Update app.py
Browse files180 unmodified lines181182183184185186187188189190191192193194195196197198199200201202203204205206180 unmodified lines# Add status messagestatus_output = gr.Textbox(label="Status", value="Ready to convert")# Setup the conversion processconvert_button.click(fn=convert_file,inputs=[file_input],outputs=[text_output, file_output, status_output])# Dodaj przykładowe pliki do demonstracji (opcjonalnie)gr.Examples(examples=[["example.xlsx"],["example.pdf"],["example.docx"],["example.pptx"],],inputs=[file_input],outputs=[text_output, file_output, status_output],fn=convert_file,cache_examples=False,)# Launch the appif __name__ == "__main__":180 unmodified lines181182183184185186187188189190191192193194195196197198199200201202203204205206180 unmodified lines# Add status messagestatus_output = gr.Textbox(label="Status", value="Ready to convert")# Info about supported formatsgr.Markdown("""## Supported file formats:- **Excel**: .xlsx, .xls- **PowerPoint**: .pptx, .ppt- **PDF**: .pdf- **Word**: .docx, .doc## How to use:1. Upload a file using the file upload button2. Click "Convert to TXT"3. View the converted text and download the result""")# Setup the conversion processconvert_button.click(fn=convert_file,inputs=[file_input],outputs=[text_output, file_output, status_output])# Launch the appif __name__ == "__main__":
app.py+14-14