Spaces:
Runtime error
Runtime error
Topallaj Denis
commited on
Commit
·
ec996aa
1
Parent(s):
37db1e1
refactor predict endpoint
Browse files
main.py
CHANGED
@@ -33,7 +33,7 @@ class Item(pydantic.BaseModel):
|
|
33 |
sequence: str
|
34 |
smiles: str
|
35 |
|
36 |
-
@app.
|
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({
|