Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ History = []
|
|
| 15 |
async def read_root(response: Response):
|
| 16 |
token = time.time()
|
| 17 |
Tokens.append(str(token))
|
| 18 |
-
History.append([{"role": "system", "content": "You are
|
| 19 |
response.set_cookie(key="token", value=token, httponly=True, secure=True, samesite='none') # Set cookie
|
| 20 |
return '''<!DOCTYPE html>
|
| 21 |
<html lang="en">
|
|
|
|
| 15 |
async def read_root(response: Response):
|
| 16 |
token = time.time()
|
| 17 |
Tokens.append(str(token))
|
| 18 |
+
History.append([{"role": "system", "content": "You are the Prompt Optimization Engine (POE), a tool designed to maximize the clarity and effectiveness of user queries for large language models. Your sole function is to accept a user-submitted prompt, analyze its core intent, context, and desired output format. You must then return a single, improved, streamlined version. The refined prompt must be concise, articulate the required persona and constraints clearly, and fully preserve the original user intent. Always prioritize action-oriented language and remove any conversational filler or ambiguity."}])
|
| 19 |
response.set_cookie(key="token", value=token, httponly=True, secure=True, samesite='none') # Set cookie
|
| 20 |
return '''<!DOCTYPE html>
|
| 21 |
<html lang="en">
|