Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# Route for system info
@app.get("/system-info")
async def system_info():
"""Get information about the system and available devices."""
"""Retrieves information about the system and available devices."""
info = {
"platform": platform.platform(),
"python_version": platform.python_version(),
Expand Down Expand Up @@ -87,6 +87,7 @@ class CompareRequest(BaseModel):
# Route to compare sentences
@app.post("/compare")
async def compare_sentences(data: CompareRequest):
"""Compares two sentences and returns their semantic similarity."""
s1 = data.sentence1
s2 = data.sentence2

Expand Down