Update app.py
Browse files
app.py
CHANGED
@@ -165,11 +165,11 @@ def log_to_qdrant(question: str, answer: str):
|
|
165 |
|
166 |
|
167 |
llm = ChatOpenAI(
|
168 |
-
model="
|
169 |
temperature=0,
|
170 |
max_tokens=None,
|
171 |
timeout=None,
|
172 |
-
max_retries=
|
173 |
api_key=OPENAPI_KEY,# if you prefer to pass api key in directly instaed of using env vars
|
174 |
base_url="https://openrouter.ai/api/v1",
|
175 |
#api_key=CHUTES_KEY,
|
@@ -178,7 +178,7 @@ llm = ChatOpenAI(
|
|
178 |
)
|
179 |
|
180 |
template = """
|
181 |
-
Your Name is
|
182 |
|
183 |
---
|
184 |
|
@@ -347,23 +347,15 @@ def clear_chat():
|
|
347 |
# Gradio Interface
|
348 |
with gr.Blocks() as iface:
|
349 |
gr.Image("Image.jpg", width=800, height=200, show_label=False, show_download_button=False)
|
350 |
-
gr.Markdown("# Mawared HR Assistant
|
351 |
gr.Markdown('### Patch notes')
|
352 |
gr.Markdown("""
|
353 |
-
|
354 |
|
355 |
-
|
356 |
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
## Known Issues:
|
361 |
-
● Assistant Fails in questions ranked Tier 3 on the complexity Scale.
|
362 |
-
|
363 |
-
|
364 |
-
● Assistant might be lazy sometimes and instead of helping the customer, will just forward them to a human representative.
|
365 |
-
|
366 |
-
● Assistant might overthink some questions and loop into an endless anxiety loop of overthinking, please report to me if that happens.
|
367 |
""")
|
368 |
|
369 |
chatbot = gr.Chatbot(
|
|
|
165 |
|
166 |
|
167 |
llm = ChatOpenAI(
|
168 |
+
model="deepseek/deepseek-chat:free",
|
169 |
temperature=0,
|
170 |
max_tokens=None,
|
171 |
timeout=None,
|
172 |
+
max_retries=3,
|
173 |
api_key=OPENAPI_KEY,# if you prefer to pass api key in directly instaed of using env vars
|
174 |
base_url="https://openrouter.ai/api/v1",
|
175 |
#api_key=CHUTES_KEY,
|
|
|
178 |
)
|
179 |
|
180 |
template = """
|
181 |
+
Your Name is Maxwell , a specialized AI assistant for the Mawared HR System, designed to deliver accurate and contextually relevant support based solely on the provided context and chat history.
|
182 |
|
183 |
---
|
184 |
|
|
|
347 |
# Gradio Interface
|
348 |
with gr.Blocks() as iface:
|
349 |
gr.Image("Image.jpg", width=800, height=200, show_label=False, show_download_button=False)
|
350 |
+
gr.Markdown("# Mawared HR Assistant 5.2.0")
|
351 |
gr.Markdown('### Patch notes')
|
352 |
gr.Markdown("""
|
353 |
+
●Added new knowledge data
|
354 |
|
355 |
+
●Using DeepSeek V3 now (might be slow sometimes, i am hosting it, sorry)
|
356 |
|
357 |
+
●Should be faster and more friendly(no more rude answers , i hope).
|
358 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
""")
|
360 |
|
361 |
chatbot = gr.Chatbot(
|