Kim Juwon
commited on
Commit
·
76ef126
1
Parent(s):
867dd48
update UI/UX
Browse files- __pycache__/app.cpython-39.pyc +0 -0
- app.py +10 -59
__pycache__/app.cpython-39.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-39.pyc and b/__pycache__/app.cpython-39.pyc differ
|
|
|
app.py
CHANGED
|
@@ -66,69 +66,20 @@ def show_settings_changed_info(agent_type, personality, expertise_level, languag
|
|
| 66 |
Chat has been reset. Please start a new conversation with the updated settings.
|
| 67 |
"""
|
| 68 |
|
| 69 |
-
#
|
| 70 |
custom_css = """
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
background
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
border: 1px solid #e0e0e0;
|
| 80 |
-
border-radius: 8px;
|
| 81 |
-
box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
|
| 82 |
-
}
|
| 83 |
-
.gr-chatbot {
|
| 84 |
-
background-color: #f0f0f5;
|
| 85 |
-
color: #333;
|
| 86 |
-
border-radius: 10px;
|
| 87 |
-
}
|
| 88 |
-
.gr-button-primary {
|
| 89 |
-
background-color: #ff7847 !important;
|
| 90 |
-
color: #fff !important;
|
| 91 |
-
}
|
| 92 |
-
.gr-button-secondary {
|
| 93 |
-
background-color: #d1c4e9 !important;
|
| 94 |
-
color: #333 !important;
|
| 95 |
-
}
|
| 96 |
-
.gr-dropdown select, .gr-textbox textarea {
|
| 97 |
-
background-color: #ffffff;
|
| 98 |
-
color: #333;
|
| 99 |
-
}
|
| 100 |
-
|
| 101 |
-
/* 다크 모드 */
|
| 102 |
-
@media (prefers-color-scheme: dark) {
|
| 103 |
-
body, .gradio-container {
|
| 104 |
-
background-color: #0d0d0d;
|
| 105 |
-
color: #f0f0f0;
|
| 106 |
-
}
|
| 107 |
-
.gr-box, .gr-group, .gr-column, .gr-dropdown, .gr-textbox, .gr-markdown {
|
| 108 |
-
background-color: #1a1a1a;
|
| 109 |
-
color: #f0f0f0;
|
| 110 |
-
border: 1px solid #333;
|
| 111 |
-
}
|
| 112 |
-
.gr-chatbot {
|
| 113 |
-
background-color: #1a1a1a;
|
| 114 |
-
color: #f0f0f0;
|
| 115 |
-
}
|
| 116 |
-
.gr-button-primary {
|
| 117 |
-
background-color: #ff7847 !important;
|
| 118 |
-
color: #fff !important;
|
| 119 |
-
}
|
| 120 |
-
.gr-button-secondary {
|
| 121 |
-
background-color: #444 !important;
|
| 122 |
-
color: #fff !important;
|
| 123 |
-
}
|
| 124 |
-
.gr-dropdown select, .gr-textbox textarea {
|
| 125 |
-
background-color: #1a1a1a;
|
| 126 |
-
color: #f0f0f0;
|
| 127 |
-
}
|
| 128 |
}
|
| 129 |
"""
|
| 130 |
|
| 131 |
-
with gr.Blocks(css=custom_css) as demo:
|
| 132 |
gr.Markdown("""
|
| 133 |
# 🎬 Personalized Movie Recommender
|
| 134 |
Tell us your preferred genres and current mood, and we'll recommend the perfect movies for you.
|
|
|
|
| 66 |
Chat has been reset. Please start a new conversation with the updated settings.
|
| 67 |
"""
|
| 68 |
|
| 69 |
+
# 🖌️ CSS: 그라데이션 효과와 중앙 정렬
|
| 70 |
custom_css = """
|
| 71 |
+
h1 {
|
| 72 |
+
display: inline-block;
|
| 73 |
+
background: linear-gradient(90deg, #ff8a00, #e52e71, #9b00ff);
|
| 74 |
+
-webkit-background-clip: text;
|
| 75 |
+
-webkit-text-fill-color: transparent;
|
| 76 |
+
text-align: center;
|
| 77 |
+
margin: 0 auto;
|
| 78 |
+
font-weight: 900;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
"""
|
| 81 |
|
| 82 |
+
with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
| 83 |
gr.Markdown("""
|
| 84 |
# 🎬 Personalized Movie Recommender
|
| 85 |
Tell us your preferred genres and current mood, and we'll recommend the perfect movies for you.
|