Farid Karimli
commited on
Commit
·
d6ae8e0
1
Parent(s):
4d2326b
Remove logout button and remove prints
Browse files- apps/ai_tutor/app.py +0 -2
- apps/ai_tutor/public/files/test.css +16 -0
apps/ai_tutor/app.py
CHANGED
@@ -240,8 +240,6 @@ async def cooldown(request: Request):
|
|
240 |
cooldown, cooldown_end_time = await check_user_cooldown(
|
241 |
user_details, current_datetime, COOLDOWN_TIME, TOKENS_LEFT, REGEN_TIME
|
242 |
)
|
243 |
-
print(f"User in cooldown: {cooldown}")
|
244 |
-
print(f"Cooldown end time: {cooldown_end_time}")
|
245 |
if cooldown and "admin" not in get_user_role(user_info["email"]):
|
246 |
return templates.TemplateResponse(
|
247 |
"cooldown.html",
|
|
|
240 |
cooldown, cooldown_end_time = await check_user_cooldown(
|
241 |
user_details, current_datetime, COOLDOWN_TIME, TOKENS_LEFT, REGEN_TIME
|
242 |
)
|
|
|
|
|
243 |
if cooldown and "admin" not in get_user_role(user_info["email"]):
|
244 |
return templates.TemplateResponse(
|
245 |
"cooldown.html",
|
apps/ai_tutor/public/files/test.css
CHANGED
@@ -31,3 +31,19 @@ a[href*='https://github.com/Chainlit/chainlit']
|
|
31 |
max-height: 45px; /* Ensure the height remains consistent */
|
32 |
max-width: 45px; /* Ensure the width remains consistent */
|
33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
max-height: 45px; /* Ensure the height remains consistent */
|
32 |
max-width: 45px; /* Ensure the width remains consistent */
|
33 |
}
|
34 |
+
|
35 |
+
.MuiDialogContent-root.css-1ty026z {
|
36 |
+
color: #000000;
|
37 |
+
}
|
38 |
+
|
39 |
+
.MuiDialogContent-root.css-1ty026z p {
|
40 |
+
color: red;
|
41 |
+
}
|
42 |
+
|
43 |
+
.MuiDialogContent-root.css-1ty026z h6 {
|
44 |
+
color: #000000;
|
45 |
+
}
|
46 |
+
|
47 |
+
.css-dbukeo {
|
48 |
+
display: none !important;
|
49 |
+
}
|