Den-d3j2d commited on
Commit
6bdf3ab
·
verified ·
1 Parent(s): ac50ec3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ class TextInput(BaseModel):
14
  class EmbeddingOutput(BaseModel):
15
  embedding: List[float]
16
 
17
- @app.post("/encode_text", response_model=EmbeddingOutput)
18
  async def encode_text(text_input: TextInput):
19
  config = ModelConfig()
20
  model = ProdFeatureEncoder(config=config)
 
14
  class EmbeddingOutput(BaseModel):
15
  embedding: List[float]
16
 
17
+ @app.get("/encode_text/{text}", response_model=EmbeddingOutput)
18
  async def encode_text(text_input: TextInput):
19
  config = ModelConfig()
20
  model = ProdFeatureEncoder(config=config)