Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ Current Question:
|
|
120 |
{question}
|
121 |
|
122 |
Please provide a response that takes into account both the current context and the previous conversation history. If you refer to information from the chat history, make it clear where that information came from.
|
123 |
-
|
124 |
Answer:
|
125 |
"""
|
126 |
|
@@ -177,7 +177,19 @@ def clear_chat():
|
|
177 |
return [], ""
|
178 |
|
179 |
# Gradio Interface
|
180 |
-
with gr.Blocks() as iface:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
gr.Markdown("# Mawared HR Assistant")
|
182 |
gr.Markdown("Ask questions about the Mawared HR system, and this assistant will provide answers based on the available context and conversation history.")
|
183 |
|
|
|
120 |
{question}
|
121 |
|
122 |
Please provide a response that takes into account both the current context and the previous conversation history. If you refer to information from the chat history, make it clear where that information came from.
|
123 |
+
Don't refer to the original Document where you got your Data.
|
124 |
Answer:
|
125 |
"""
|
126 |
|
|
|
177 |
return [], ""
|
178 |
|
179 |
# Gradio Interface
|
180 |
+
with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
181 |
+
gr.HTML("""
|
182 |
+
<div style="display: flex; justify-content: center; align-items: center; margin: 20px 0; padding: 20px; gap: 20px;">
|
183 |
+
<div style="background-color: #f0f0f0; border-radius: 50%; padding: 10px; width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
|
184 |
+
<img src="./image.jpg" alt="Mawared Logo" style="width: 80px; height: 80px; border-radius: 50%; object-fit: cover;">
|
185 |
+
</div>
|
186 |
+
<div style="display: flex; flex-direction: column;">
|
187 |
+
<h1 style="margin: 0; font-size: 2.5em; color: #2d2d2d;">Mawared HR</h1>
|
188 |
+
<p style="margin: 5px 0 0 0; color: #666; font-size: 1.2em;">AI Assistant</p>
|
189 |
+
</div>
|
190 |
+
</div>
|
191 |
+
<div style="width: 100%; height: 2px; background: linear-gradient(to right, #e0e0e0, #666, #e0e0e0); margin: 0 0 20px 0;"></div>
|
192 |
+
""")
|
193 |
gr.Markdown("# Mawared HR Assistant")
|
194 |
gr.Markdown("Ask questions about the Mawared HR system, and this assistant will provide answers based on the available context and conversation history.")
|
195 |
|