Spaces:
Runtime error
Runtime error
Update presentation_api.py
Browse files- presentation_api.py +1 -4
presentation_api.py
CHANGED
|
@@ -16,7 +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 |
-
from prompts import PRESENTATION_SYSTEM_PROMPT
|
| 20 |
|
| 21 |
router = APIRouter(
|
| 22 |
prefix="/presentation",
|
|
@@ -87,9 +87,6 @@ prompt = ChatPromptTemplate.from_messages([
|
|
| 87 |
2. Wait for user input to proceed with the plan or update the current plan based on input.
|
| 88 |
3. Then use create_slide tool for each slide in sequence
|
| 89 |
4. Guide the user through the presentation creation process
|
| 90 |
-
|
| 91 |
-
Guidelines for Presentation Slides Creation"""+\
|
| 92 |
-
PRESENTATION_SYSTEM_PROMPT+\
|
| 93 |
"""Today's date is {{datetime.now().strftime('%Y-%m-%d')}}"""),
|
| 94 |
("placeholder", "{messages}"),
|
| 95 |
])
|
|
|
|
| 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",
|
|
|
|
| 87 |
2. Wait for user input to proceed with the plan or update the current plan based on input.
|
| 88 |
3. Then use create_slide tool for each slide in sequence
|
| 89 |
4. Guide the user through the presentation creation process
|
|
|
|
|
|
|
|
|
|
| 90 |
"""Today's date is {{datetime.now().strftime('%Y-%m-%d')}}"""),
|
| 91 |
("placeholder", "{messages}"),
|
| 92 |
])
|