Spaces:
Sleeping
Sleeping
kauabarros-24
commited on
Commit
·
831479a
1
Parent(s):
b5f1761
Arroz
Browse files- README.md +1 -1
- src/1/routes/ai_routes.py +1 -1
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title: "
|
3 |
emoji: "🚀"
|
4 |
colorFrom: "blue"
|
5 |
colorTo: "green"
|
|
|
1 |
---
|
2 |
+
title: "Api for access AI recommendation"
|
3 |
emoji: "🚀"
|
4 |
colorFrom: "blue"
|
5 |
colorTo: "green"
|
src/1/routes/ai_routes.py
CHANGED
@@ -35,4 +35,4 @@ async def ai(request: Request):
|
|
35 |
outputs = model(input_ids, attention_mask=attention_mask)
|
36 |
logits = outputs.logits
|
37 |
|
38 |
-
return logits.tolist()
|
|
|
35 |
outputs = model(input_ids, attention_mask=attention_mask)
|
36 |
logits = outputs.logits
|
37 |
|
38 |
+
return {"similarity": logits.tolist()}
|