Spaces:
Sleeping
Sleeping
Commit
·
94d331f
1
Parent(s):
c3a7c1e
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,11 +19,11 @@ def format_prompt(message, history):
|
|
| 19 |
get_manual_content()
|
| 20 |
prompt = "<s>"
|
| 21 |
if manual_content:
|
| 22 |
-
prompt += f"[INST]Leggi questo MANUALE dopo ti farò delle domande
|
| 23 |
for user_prompt, bot_response in history:
|
| 24 |
prompt += f"[INST] {user_prompt} [/INST]"
|
| 25 |
prompt += f" {bot_response}</s> "
|
| 26 |
-
prompt += f"[INST]Tu sei Zucchetti AI, il mio assistente personale di AdHoc e... io ho un problema in AdHoc, rispondi proponendo SOLO con soluzione relativa al problema a partire dal manuale
|
| 27 |
return prompt
|
| 28 |
|
| 29 |
def generate(
|
|
|
|
| 19 |
get_manual_content()
|
| 20 |
prompt = "<s>"
|
| 21 |
if manual_content:
|
| 22 |
+
prompt += f"[INST]Leggi questo MANUALE dopo ti farò delle domande: [/INST] {manual_content}"
|
| 23 |
for user_prompt, bot_response in history:
|
| 24 |
prompt += f"[INST] {user_prompt} [/INST]"
|
| 25 |
prompt += f" {bot_response}</s> "
|
| 26 |
+
prompt += f"[INST]Tu sei Zucchetti AI, il mio assistente personale di AdHoc e... io ho un problema in AdHoc, rispondi proponendo SOLO con soluzione relativa al problema a partire dal manuale: {message} [/INST]"
|
| 27 |
return prompt
|
| 28 |
|
| 29 |
def generate(
|