Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,7 @@ class Input(BaseModel):
|
|
| 22 |
@app.post("/get_vectors")
|
| 23 |
def get_vecs(data: Input):
|
| 24 |
now=time.time()
|
|
|
|
| 25 |
texts=list(map(lambda x: BeautifulSoup(x).get_text(), texts))
|
| 26 |
texts=list(map(normalizer.normalize, texts))
|
| 27 |
|
|
|
|
| 22 |
@app.post("/get_vectors")
|
| 23 |
def get_vecs(data: Input):
|
| 24 |
now=time.time()
|
| 25 |
+
texts=data.texts
|
| 26 |
texts=list(map(lambda x: BeautifulSoup(x).get_text(), texts))
|
| 27 |
texts=list(map(normalizer.normalize, texts))
|
| 28 |
|