Spaces:
Runtime error
Runtime error
Update presentation_api.py
Browse files- presentation_api.py +2 -2
presentation_api.py
CHANGED
|
@@ -22,7 +22,7 @@ router = APIRouter(
|
|
| 22 |
)
|
| 23 |
|
| 24 |
|
| 25 |
-
from typing import Dict
|
| 26 |
from pydantic import BaseModel, Field
|
| 27 |
|
| 28 |
class Slide(BaseModel):
|
|
@@ -42,7 +42,7 @@ def plan(input: SlidesInput) -> str:
|
|
| 42 |
Args:
|
| 43 |
input: PlanInput object containing presentation details
|
| 44 |
"""
|
| 45 |
-
return f"Plan created with {len(input
|
| 46 |
|
| 47 |
@tool(parse_docstring=True)
|
| 48 |
def create_slide(slideno: int, content: str) -> str:
|
|
|
|
| 22 |
)
|
| 23 |
|
| 24 |
|
| 25 |
+
from typing import Dict, list
|
| 26 |
from pydantic import BaseModel, Field
|
| 27 |
|
| 28 |
class Slide(BaseModel):
|
|
|
|
| 42 |
Args:
|
| 43 |
input: PlanInput object containing presentation details
|
| 44 |
"""
|
| 45 |
+
return f"Plan created with {len(input)} slides"
|
| 46 |
|
| 47 |
@tool(parse_docstring=True)
|
| 48 |
def create_slide(slideno: int, content: str) -> str:
|