Spaces:
Runtime error
Runtime error
Change TIL Feedback from get -> post
Browse files- endpoints.py +2 -2
endpoints.py
CHANGED
|
@@ -37,8 +37,8 @@ app.add_middleware(
|
|
| 37 |
allow_headers=["*"],
|
| 38 |
)
|
| 39 |
|
| 40 |
-
@app.
|
| 41 |
-
async def til_feedback_kickoff(content: List[str]
|
| 42 |
separator = "\n* "
|
| 43 |
content[0] = "* " + content[0]
|
| 44 |
inputs = {"content": separator.join(content)}
|
|
|
|
| 37 |
allow_headers=["*"],
|
| 38 |
)
|
| 39 |
|
| 40 |
+
@app.post("/til_feedback", tags=["til_feedback"])
|
| 41 |
+
async def til_feedback_kickoff(content: List[str]) -> til.TilFeedbackResponse:
|
| 42 |
separator = "\n* "
|
| 43 |
content[0] = "* " + content[0]
|
| 44 |
inputs = {"content": separator.join(content)}
|