Skip to content

Commit a43da60

Browse files
committed
Add start & test scripts
1 parent 0ab8068 commit a43da60

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

bin/start_server

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
uvicorn sentiment_analyzer.api:app

bin/test_request

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
http POST http://localhost:8000/predict text="This app is a total waste of time!"

sentiment_analyzer/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class SentimentRequest(BaseModel):
1313

1414

1515
class SentimentResponse(BaseModel):
16-
1716
probabilities: Dict[str, float]
1817
sentiment: str
1918
confidence: float

0 commit comments

Comments
 (0)