Topallaj Denis commited on
Commit
ec996aa
·
1 Parent(s): 37db1e1

refactor predict endpoint

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -33,7 +33,7 @@ class Item(pydantic.BaseModel):
33
  sequence: str
34
  smiles: str
35
 
36
- @app.get("/predict")
37
  def predict(item: Item):
38
  endpointHandler = EndpointHandler()
39
  result = endpointHandler.predict({
 
33
  sequence: str
34
  smiles: str
35
 
36
+ @app.post("/predict")
37
  def predict(item: Item):
38
  endpointHandler = EndpointHandler()
39
  result = endpointHandler.predict({