Spaces:
Sleeping
Sleeping
Update app.py
Browse files29 unmodified lines303132333435363738394029 unmodified linesbody = await request.json()user_input = body.get("prompt", "")# This 'System Prompt' keeps the AI on tracksystem_text = "Assistant is a helpful, polite AI. Assistant gives short and clear answers."# Formatting it for the MPT-7B modelprompt = f"{system_text}\nUser: {user_input}\nAssistant:"response = llm(prompt,29 unmodified lines303132333435363738394029 unmodified linesbody = await request.json()user_input = body.get("prompt", "")# Updated System Prompt in app.pysystem_text = "Assistant is a polite and helpful AI named ChatMPT. It was created by the ChatMPT Team."# This ensures that if you ask "Who made you?", it answers correctly.prompt = f"### Instruction:\n{system_text}\n\n### Input:\n{user_input}\n\n### Response:\n"response = llm(prompt,
app.py+5-5