Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ retriever = db.as_retriever(
|
|
| 121 |
)
|
| 122 |
|
| 123 |
llm = ChatOpenAI(
|
| 124 |
-
model="
|
| 125 |
temperature=0,
|
| 126 |
max_tokens=None,
|
| 127 |
timeout=None,
|
|
@@ -266,9 +266,23 @@ def clear_chat():
|
|
| 266 |
# Gradio Interface
|
| 267 |
with gr.Blocks(theme='Hev832/Applio') as iface:
|
| 268 |
gr.Image("Image.jpg", width=750, height=300, show_label=False, show_download_button=False)
|
| 269 |
-
gr.Markdown("# Mawared HR Assistant 2.7")
|
| 270 |
-
gr.Markdown('###
|
| 271 |
-
gr.Markdown("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 272 |
|
| 273 |
chatbot = gr.Chatbot(
|
| 274 |
height=750,
|
|
|
|
| 121 |
)
|
| 122 |
|
| 123 |
llm = ChatOpenAI(
|
| 124 |
+
model="meta-llama/Llama-3.3-70B-Instruct",
|
| 125 |
temperature=0,
|
| 126 |
max_tokens=None,
|
| 127 |
timeout=None,
|
|
|
|
| 266 |
# Gradio Interface
|
| 267 |
with gr.Blocks(theme='Hev832/Applio') as iface:
|
| 268 |
gr.Image("Image.jpg", width=750, height=300, show_label=False, show_download_button=False)
|
| 269 |
+
gr.Markdown("# Mawared HR Assistant 2.7 Pre-Release")
|
| 270 |
+
gr.Markdown('### Patch Notes')
|
| 271 |
+
gr.Markdown("""
|
| 272 |
+
1-Fixed Api Issues.
|
| 273 |
+
|
| 274 |
+
2-Better Search Algorithm
|
| 275 |
+
|
| 276 |
+
3-Now when asked a question, Agent will rewrite the question to enhance it based on its context and user intent and sentiment analysis.
|
| 277 |
+
|
| 278 |
+
4-It will use chain-of-thought reasoning to break down the question to many sub-Questions to answer them better and easier.
|
| 279 |
+
|
| 280 |
+
5-Model is prone to mistakes and hallucinations.
|
| 281 |
+
|
| 282 |
+
**WARNING:** MODEL IS HIGHLY INTELLIGENT AND IS PRONE TO OVERTHINKING, ANXIETY, TEXT LOOP AND SELF DOUBT.
|
| 283 |
+
IF THAT HAPPENS PLEASE REPORT IT.
|
| 284 |
+
Lastly, happy bugging :] .
|
| 285 |
+
""")
|
| 286 |
|
| 287 |
chatbot = gr.Chatbot(
|
| 288 |
height=750,
|