M17idd commited on
Commit
616fcb1
·
1 Parent(s): 542e3db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +64 -1
app.py CHANGED
@@ -194,12 +194,75 @@ if not st.session_state.authenticated:
194
  padding: 10px;
195
  }
196
  </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
  """, unsafe_allow_html=True)
198
  username = st.text_input("نام کاربری:", placeholder="شناسه خود را وارد کنید",
199
  label_visibility="visible")
200
 
201
  password = st.text_input("رمز عبور:", placeholder="رمز عبور ", type="password",
202
  label_visibility="visible")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
 
204
  if st.button("ورود"):
205
  if username == "admin" and password == "123":
@@ -339,7 +402,7 @@ llm = ChatOpenAI(
339
  )
340
 
341
  # ---------- پردازش فایل‌ها با کش و موازی ----------
342
- folder_path = '46'
343
  normalizer = Normalizer()
344
  sentence_tokenizer = SentenceTokenizer()
345
 
 
194
  padding: 10px;
195
  }
196
  </style>
197
+ """, unsafe_allow_html=True)
198
+ st.markdown("""
199
+ <style>
200
+ /* فونت عمومی */
201
+ html, body, [class*="css"] {
202
+ font-family: 'Vazir', sans-serif;
203
+ }
204
+
205
+ /* استایل برای برچسب فیلدهای ورودی */
206
+ label {
207
+ font-size: 20px !important;
208
+ color: #ffffff !important;
209
+ font-weight: 800 !important;
210
+ margin-bottom: 10px !important;
211
+ display: block;
212
+ }
213
+
214
+ /* استایل برای ورودی‌ها */
215
+ input[type="text"], input[type="password"] {
216
+ background-color: #ffffff !important;
217
+ color: #f8f8f8 !important;
218
+ font-size: 18px !important;
219
+ font-family: 'Vazir', sans-serif !important;
220
+
221
+
222
+
223
+ /* Placeholder style */
224
+ ::placeholder {
225
+ color: #bbbbbb !important;
226
+ opacity: 0.8 !important;
227
+ font-size: 16px;
228
+ }
229
+ </style>
230
  """, unsafe_allow_html=True)
231
  username = st.text_input("نام کاربری:", placeholder="شناسه خود را وارد کنید",
232
  label_visibility="visible")
233
 
234
  password = st.text_input("رمز عبور:", placeholder="رمز عبور ", type="password",
235
  label_visibility="visible")
236
+ st.markdown("""
237
+ <style>
238
+ div.stButton > button {
239
+ background-image: url("https://upload.wikimedia.org/wikipedia/commons/5/59/US_Army_Universal_Camouflage_Pattern.jpg");
240
+ background-size: cover;
241
+ background-repeat: no-repeat;
242
+ background-position: center;
243
+ color: #f5deb3;
244
+ font-family: 'Vazir', sans-serif;
245
+ font-size: 20px;
246
+ font-weight: bold;
247
+ padding: 14px 35px;
248
+ border: 2px solid #d4af37;
249
+ border-radius: 14px;
250
+ box-shadow: 0 0 18px rgba(0,0,0,0.6);
251
+ transition: all 0.3s ease-in-out;
252
+ }
253
+
254
+ div.stButton > button:hover {
255
+ filter: brightness(1.2);
256
+ box-shadow: 0 0 22px #b8860b;
257
+ transform: scale(1.03);
258
+ }
259
+
260
+ div.stButton > button:active {
261
+ transform: scale(0.97);
262
+ box-shadow: 0 0 12px #000;
263
+ }
264
+ </style>
265
+ """, unsafe_allow_html=True)
266
 
267
  if st.button("ورود"):
268
  if username == "admin" and password == "123":
 
402
  )
403
 
404
  # ---------- پردازش فایل‌ها با کش و موازی ----------
405
+ folder_path = 'C:/Users/ici/Downloads/Telegram Desktop/45/46'
406
  normalizer = Normalizer()
407
  sentence_tokenizer = SentenceTokenizer()
408