kuroiikimono
commited on
Commit
β’
11c5daa
1
Parent(s):
9aa3200
Update app.py
Browse files
app.py
CHANGED
@@ -105,10 +105,30 @@ def main():
|
|
105 |
st.session_state.result = ""
|
106 |
|
107 |
apptitle = st.empty()
|
|
|
108 |
obj_0 = st.empty()
|
109 |
obj_1 = st.empty()
|
110 |
|
111 |
apptitle.header("PDF file Translator π", divider="violet")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
obj_0.success("PDF file uploader")
|
113 |
st.markdown(f"The remote ip is `{get_remote_ip()}`")
|
114 |
|
|
|
105 |
st.session_state.result = ""
|
106 |
|
107 |
apptitle = st.empty()
|
108 |
+
description = st.empty()
|
109 |
obj_0 = st.empty()
|
110 |
obj_1 = st.empty()
|
111 |
|
112 |
apptitle.header("PDF file Translator π", divider="violet")
|
113 |
+
description.write("""
|
114 |
+
It's easy to use.:black_cat: Just upload, select the language, and download the resulting .zip file.
|
115 |
+
|
116 |
+
After uploading a PDF file and selecting the translation language, you can wait a while.
|
117 |
+
|
118 |
+
The original text, the original text and translation (a few lines of the original text followed by the translation) and the translation text will be compressed into a zip file and available for download.
|
119 |
+
|
120 |
+
When you press the download button, the compressed file will be downloaded, and if you select another translation language, the process will be repeated.
|
121 |
+
|
122 |
+
The uploaded PDF file will disappear when you close the browser tab.
|
123 |
+
|
124 |
+
Only PDF files can be uploaded.
|
125 |
+
|
126 |
+
This translation app is useful for people who want to translate something or want to read something but cannot read it unless it is translated, and who want to quickly check the original text and the translation by comparing them in pairs.
|
127 |
+
|
128 |
+
Even if the PDF file has many pages, there is no limit to the number of pages or characters.
|
129 |
+
|
130 |
+
The untranslated data will be retained until the browser is closed, but once the app page is closed, the connection will be cut off and the data will be deleted.
|
131 |
+
""")
|
132 |
obj_0.success("PDF file uploader")
|
133 |
st.markdown(f"The remote ip is `{get_remote_ip()}`")
|
134 |
|