Rathapoom commited on
Commit
56328aa
1 Parent(s): 6c3e5c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -22
app.py CHANGED
@@ -9,6 +9,28 @@ import io
9
  from datetime import datetime
10
  from PIL import Image
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  # Constants
13
  WORD_LIMIT = 8000
14
  DAILY_API_LIMIT = 5 # Set your desired limit per user per day
@@ -266,28 +288,6 @@ if st.session_state.username is None:
266
  2. After verification, click 'Enter GeneXam Application' to start using the system
267
  """)
268
 
269
- # Add some custom CSS to improve the layout
270
- st.markdown("""
271
- <style>
272
- .stImage {
273
- text-align: center;
274
- display: block;
275
- margin-left: auto;
276
- margin-right: auto;
277
- }
278
-
279
- .stTitle {
280
- text-align: center;
281
- padding-bottom: 20px;
282
- }
283
-
284
- div[data-testid="stVerticalBlock"] > div:has(div.stButton) {
285
- text-align: center;
286
- padding: 10px 0;
287
- }
288
- </style>
289
- """, unsafe_allow_html=True)
290
-
291
  else:
292
  # Main application code (ส่วนที่เหลือเหมือนเดิม)
293
  st.title(f"Welcome to GeneXam, {st.session_state.username}! 🎓")
 
9
  from datetime import datetime
10
  from PIL import Image
11
 
12
+ # Add some custom CSS to improve the layout
13
+ st.markdown("""
14
+ <style>
15
+ .stImage {
16
+ text-align: center;
17
+ display: block;
18
+ margin-left: auto;
19
+ margin-right: auto;
20
+ }
21
+
22
+ .stTitle {
23
+ text-align: center;
24
+ padding-bottom: 20px;
25
+ }
26
+
27
+ div[data-testid="stVerticalBlock"] > div:has(div.stButton) {
28
+ text-align: center;
29
+ padding: 10px 0;
30
+ }
31
+ </style>
32
+ """, unsafe_allow_html=True)
33
+
34
  # Constants
35
  WORD_LIMIT = 8000
36
  DAILY_API_LIMIT = 5 # Set your desired limit per user per day
 
288
  2. After verification, click 'Enter GeneXam Application' to start using the system
289
  """)
290
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  else:
292
  # Main application code (ส่วนที่เหลือเหมือนเดิม)
293
  st.title(f"Welcome to GeneXam, {st.session_state.username}! 🎓")