Spaces:
Running
Running
Update presentation_api.py
Browse files- presentation_api.py +3 -0
presentation_api.py
CHANGED
@@ -16,6 +16,7 @@ from fastapi import APIRouter
|
|
16 |
from langchain_core.runnables import RunnableConfig
|
17 |
from langchain_core.prompts import ChatPromptTemplate
|
18 |
from typing import Any
|
|
|
19 |
|
20 |
router = APIRouter(
|
21 |
prefix="/presentation",
|
@@ -77,6 +78,8 @@ prompt = ChatPromptTemplate.from_messages([
|
|
77 |
3. Then use create_slide tool for each slide in sequence
|
78 |
4. Guide the user through the presentation creation process
|
79 |
|
|
|
|
|
80 |
Today's date is {{datetime.now().strftime('%Y-%m-%d')}}"""),
|
81 |
("placeholder", "{messages}"),
|
82 |
])
|
|
|
16 |
from langchain_core.runnables import RunnableConfig
|
17 |
from langchain_core.prompts import ChatPromptTemplate
|
18 |
from typing import Any
|
19 |
+
from prompts import PRESENTATION_SYSTEM_PROMPT
|
20 |
|
21 |
router = APIRouter(
|
22 |
prefix="/presentation",
|
|
|
78 |
3. Then use create_slide tool for each slide in sequence
|
79 |
4. Guide the user through the presentation creation process
|
80 |
|
81 |
+
Guidelines for Presentation Slides Creation
|
82 |
+
{{PRESENTATION_SYSTEM_PROMPT}}
|
83 |
Today's date is {{datetime.now().strftime('%Y-%m-%d')}}"""),
|
84 |
("placeholder", "{messages}"),
|
85 |
])
|