aidpc commited on
Commit
1ebf8f1
·
verified ·
1 Parent(s): e864bb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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