Spaces:
Sleeping
Sleeping
Commit ·
94d331f
1
Parent(s): c3a7c1e
Update app.py
Browse files18 unmodified lines192021222324252627282918 unmodified linesget_manual_content()prompt = "<s>"if manual_content:prompt += f"[INST]Leggi questo MANUALE dopo ti farò delle domande ***INIZIO_MANUALE***: [/INST] {manual_content} [INST] ***FINE_MANUALE***[/INST]"for user_prompt, bot_response in history:prompt += f"[INST] {user_prompt} [/INST]"prompt += f" {bot_response}</s> "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 (testo tra ***INIZIO_MANUALE*** e ***FINE_MANUALE***): {message} [/INST]"return promptdef generate(18 unmodified lines192021222324252627282918 unmodified linesget_manual_content()prompt = "<s>"if manual_content:prompt += f"[INST]Leggi questo MANUALE dopo ti farò delle domande: [/INST] {manual_content}"for user_prompt, bot_response in history:prompt += f"[INST] {user_prompt} [/INST]"prompt += f" {bot_response}</s> "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]"return promptdef generate(
app.py+2-2