Spaces:
Build error
Build error
Thomas Chaigneau commited on
Commit ·
9d845ba
1
Parent(s): c36a64f
add specific file name
Browse files123410 unmodified lines1516171819202162 unmodified lines84858687import reimport streamlit as stfrom transformers import pipeline10 unmodified lines""")st.subheader("Translation made fast and easy.")with st.expander("❓ How does it work"):st.markdown("""**Translator** is a **simple tool** that allows you to **translate text** from one language to another.62 unmodified linesst.success("🗣️ Translated!")st.write(f"**Translation:** {' '.join(text_to_translate)}")st.download_button("Download translated text", "\n".join(text_to_translate), "text/plain")1234510 unmodified lines1617181920212262 unmodified lines858687888990919293import reimport datetimeimport streamlit as stfrom transformers import pipeline10 unmodified lines""")st.subheader("Translation made fast and easy.")with st.expander(label="❓ How does it work", expanded=True):st.markdown("""**Translator** is a **simple tool** that allows you to **translate text** from one language to another.62 unmodified linesst.success("🗣️ Translated!")st.write(f"**Translation:** {' '.join(text_to_translate)}")st.download_button(label="Download translated text",data="\n".join(text_to_translate),file_name=f"{st.session_state['input_lang']}-{st.session_state['output_lang']}-{datetime.now().strftime('%Y-%m-%d-%H-%M-%S')}.txt",mime="text/plain")
main.py+8-2