mhuseyina commited on
Commit
1fb36de
·
verified ·
1 Parent(s): 39daf80

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -12
app.py CHANGED
@@ -114,13 +114,14 @@ qa_chain = RetrievalQA.from_chain_type(
114
 
115
  # Gradio UI düzeni
116
  with gr.Blocks(css="""
117
- body {
118
- background-color: #f7f9fb;
 
119
  font-family: 'Segoe UI', sans-serif;
120
  }
121
 
122
  h1 {
123
- color: #2c3e50;
124
  text-align: center;
125
  margin-bottom: 20px;
126
  }
@@ -142,31 +143,43 @@ with gr.Blocks(css="""
142
  .chat-bubble {
143
  padding: 12px;
144
  border-radius: 12px;
145
- margin-bottom: 8px;
 
 
146
  }
147
 
148
  .chat-question {
149
- background-color: #e8f4f8;
150
- border-left: 5px solid #3498db;
151
  }
152
 
153
  .chat-answer {
154
- background-color: #f1f9f5;
155
- border-left: 5px solid #2ecc71;
156
  }
157
 
158
- .gr-textbox textarea {
159
- border-radius: 10px;
160
- font-size: 16px;
 
 
 
 
161
  }
162
 
163
  .gr-number input {
164
- background-color: #ecf0f1;
 
165
  border-radius: 8px;
166
  font-weight: bold;
 
167
  }
168
 
 
 
 
169
  """) as demo:
 
170
  gr.Markdown("# 📘 EğitBot - Eğitim Asistanı")
171
 
172
  with gr.Row():
 
114
 
115
  # Gradio UI düzeni
116
  with gr.Blocks(css="""
117
+ body {
118
+ background-color: #121212;
119
+ color: #ffffff;
120
  font-family: 'Segoe UI', sans-serif;
121
  }
122
 
123
  h1 {
124
+ color: #ffffff;
125
  text-align: center;
126
  margin-bottom: 20px;
127
  }
 
143
  .chat-bubble {
144
  padding: 12px;
145
  border-radius: 12px;
146
+ margin-bottom: 10px;
147
+ font-size: 16px;
148
+ color: #ffffff;
149
  }
150
 
151
  .chat-question {
152
+ background-color: #1e2a38;
153
+ border-left: 4px solid #3498db;
154
  }
155
 
156
  .chat-answer {
157
+ background-color: #1d352a;
158
+ border-left: 4px solid #2ecc71;
159
  }
160
 
161
+ .gr-textbox, .gr-textbox textarea {
162
+ background-color: #1e1e1e !important;
163
+ color: #ffffff !important;
164
+ border-radius: 14px !important;
165
+ font-size: 16px !important;
166
+ border: 1px solid #444 !important;
167
+ padding: 10px !important;
168
  }
169
 
170
  .gr-number input {
171
+ background-color: #1e1e1e;
172
+ color: #ffffff;
173
  border-radius: 8px;
174
  font-weight: bold;
175
+ border: 1px solid #444;
176
  }
177
 
178
+ .gr-file label, .gr-html, .gr-markdown {
179
+ color: #ffffff;
180
+ }
181
  """) as demo:
182
+
183
  gr.Markdown("# 📘 EğitBot - Eğitim Asistanı")
184
 
185
  with gr.Row():