import streamlit as st import pandas as pd import numpy as np st.set_page_config(page_title="Machine Translation App", page_icon="🌍", layout="centered") st.title("🌍 Machine Translation App") st.write( "Chào mừng bạn đến với ứng dụng dịch máy tự động!\n" "Ứng dụng này giúp bạn dịch tài liệu một cách nhanh chóng và chính xác." ) st.header("📌 Hướng dẫn sử dụng (đọc Patch Notes)") st.write("1. Truy cập [trang upload](#).") st.write("2. Chọn tệp tin cần dịch (hỗ trợ .docx, .txt, .pdf).") st.write("3. Chọn ngôn ngữ muốn dịch sang.") st.write("4. Nhấn **Upload** để bắt đầu dịch.") st.write("5. Chờ một vài phút để hệ thống xử lý.") st.write("6. Khi hoàn tất, nhấn **Tải về** để nhận tệp đã dịch.") # Điều hướng đến trang Upload to_upload = st.button("📤 Đi đến trang Upload") if to_upload: st.switch_page("pages/upload.py") # Điều hướng đến trang upload st.header("🛠️ Patch Notes") st.subheader("25/03/2025") st.write("1. Đã hoàn thành file Word, Excel") st.write("2. Đang tiến hành file PPTX (tiến độ 90% đã có thể dùng thử)") st.write("3. Sắp tới: file CSV, PDF, JPG") st.subheader("04/04/2025") st.write("1. Đã hoàn thành file Word, Excel, PPTX, CSV") st.write("2. Sắp tới: file PDF, JPG")