Spaces:
Runtime error
Runtime error
Commit ·
b8446db
1
Parent(s): 95c0a62
Update main.py
Browse files24 unmodified lines25262728293031323324 unmodified linesdef format_prompt(message, history):prompt = "<s>"with open('Manuale.txt', 'r') as file:manual_content = file.read()prompt += f"Leggi questo manuale dopo ti farò delle domande: {manual_content}"for user_prompt, bot_response in history:prompt += f"[INST] {user_prompt} [/INST]"24 unmodified lines25262728293031323324 unmodified linesdef format_prompt(message, history):prompt = "<s>"#with open('Manuale.txt', 'r') as file:# manual_content = file.read()# prompt += f"Leggi questo manuale dopo ti farò delle domande: {manual_content}"for user_prompt, bot_response in history:prompt += f"[INST] {user_prompt} [/INST]"
main.py+3-3