Diezu commited on
Commit
d1e495e
·
verified ·
1 Parent(s): 9d89456

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -25,7 +25,18 @@ def detect_errors(text, tokenizer, model):
25
 
26
  # Streamlit App
27
  st.title("Công cụ phát hiện lỗi chính tả")
28
-
 
 
 
 
 
 
 
 
 
 
 
29
  # Tải mô hình
30
  tokenizer, model = load_model()
31
 
@@ -38,7 +49,6 @@ with col1:
38
  input_text = st.text_area(
39
  "Nhập văn bản:",
40
  height=300,
41
- weight = 500,
42
  max_chars=5000,
43
  placeholder="Nhập văn bản của bạn ở đây..."
44
  )
@@ -54,7 +64,6 @@ with col2:
54
  "Các từ phát hiện lỗi:",
55
  value=", ".join(errors),
56
  height=300,
57
- weight = 500,
58
  disabled=True,
59
  )
60
  else:
 
25
 
26
  # Streamlit App
27
  st.title("Công cụ phát hiện lỗi chính tả")
28
+ # CSS tùy chỉnh
29
+ st.markdown(
30
+ """
31
+ <style>
32
+ .stTextArea textarea {
33
+ font-size: 18px; /* Thay đổi kích thước font */
34
+ font-weight: bold; /* Làm đậm chữ */
35
+ }
36
+ </style>
37
+ """,
38
+ unsafe_allow_html=True
39
+ )
40
  # Tải mô hình
41
  tokenizer, model = load_model()
42
 
 
49
  input_text = st.text_area(
50
  "Nhập văn bản:",
51
  height=300,
 
52
  max_chars=5000,
53
  placeholder="Nhập văn bản của bạn ở đây..."
54
  )
 
64
  "Các từ phát hiện lỗi:",
65
  value=", ".join(errors),
66
  height=300,
 
67
  disabled=True,
68
  )
69
  else: