Spaces:
Runtime error
Runtime error
workflows(til): import statement fixes
Browse files- crew/__init__.py +0 -0
- endpoints.py +3 -3
crew/__init__.py
DELETED
|
File without changes
|
endpoints.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
import uvicorn
|
| 3 |
from fastapi import FastAPI, Query
|
| 4 |
-
from crew import
|
| 5 |
from fastapi.middleware.cors import CORSMiddleware
|
| 6 |
from langsmith import Client
|
| 7 |
from typing import List, Optional
|
|
@@ -38,11 +38,11 @@ app.add_middleware(
|
|
| 38 |
)
|
| 39 |
|
| 40 |
@app.post("/til_feedback", tags=["til_feedback"])
|
| 41 |
-
async def til_feedback_kickoff(content: List[str]) ->
|
| 42 |
separator = "\n* "
|
| 43 |
content[0] = "* " + content[0]
|
| 44 |
inputs = {"content": separator.join(content)}
|
| 45 |
-
result =
|
| 46 |
return result
|
| 47 |
|
| 48 |
class Feedback(BaseModel):
|
|
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
import uvicorn
|
| 3 |
from fastapi import FastAPI, Query
|
| 4 |
+
from .crew.til import TilCrew, TilFeedbackResponse
|
| 5 |
from fastapi.middleware.cors import CORSMiddleware
|
| 6 |
from langsmith import Client
|
| 7 |
from typing import List, Optional
|
|
|
|
| 38 |
)
|
| 39 |
|
| 40 |
@app.post("/til_feedback", tags=["til_feedback"])
|
| 41 |
+
async def til_feedback_kickoff(content: List[str]) -> TilFeedbackResponse:
|
| 42 |
separator = "\n* "
|
| 43 |
content[0] = "* " + content[0]
|
| 44 |
inputs = {"content": separator.join(content)}
|
| 45 |
+
result = TilCrew().kickoff(inputs)
|
| 46 |
return result
|
| 47 |
|
| 48 |
class Feedback(BaseModel):
|