# Import optimization and access compiled artifacts 3af8a0d verified Fabrice-TIERCELIN commited on 6 days ago
def export_compiled_transformers_to_zip() -> str: d8ae88b verified Fabrice-TIERCELIN commited on 7 days ago
download_button = gr.DownloadButton(elem_id="download_btn", interactive = True) a65d168 verified Fabrice-TIERCELIN commited on 9 days ago
download_button = gr.DownloadButton(elem_id="download_btn", interactive = False) 033c3c4 verified Fabrice-TIERCELIN commited on 9 days ago
if not str(err).startswith("No GPU is currently available for you after 60s"): 2e32c82 verified Fabrice-TIERCELIN commited on 10 days ago
print('e.message: ' + err.message) # No GPU is currently available for you after 60s 83b65bc verified Fabrice-TIERCELIN commited on 10 days ago
(int(((num_frames * factor) - 1) / 4) * 4) + 1, 3b46c29 verified Fabrice-TIERCELIN commited on 14 days ago
return [gr.skip(), gr.skip(), gr.skip(), gr.update(value=_error_to_html(caught_error), visible=True), gr.skip()] 15c8ebe verified Fabrice-TIERCELIN commited on 15 days ago
"The video has " + str(int(num_frames * factor)) + " frames. " 2c999e6 verified Fabrice-TIERCELIN commited on 16 days ago
str(secondes) + " sec (including " + str(allocation_time) + " seconds of GPU). " ffcd789 verified Fabrice-TIERCELIN commited on 16 days ago
gr.Info("Failed with " + str(allocation_time) + " seconds", duration=5) bd78241 verified Fabrice-TIERCELIN commited on 16 days ago
return [gr.update(value=_error_to_html(caught_error), visible=True), gr.skip(), gr.skip(), gr.skip(), gr.skip()] 7ce1da3 verified Fabrice-TIERCELIN commited on 16 days ago
final_width = int(math.floor(new_width / DIMENSION_MULTIPLE) * DIMENSION_MULTIPLE) 4dee732 verified Fabrice-TIERCELIN commited on 16 days ago