Spaces:
Runtime error
Runtime error
Topallaj Denis
commited on
Commit
·
b2db8be
1
Parent(s):
4fe4112
change to post
Browse files
main.py
CHANGED
@@ -34,7 +34,7 @@ class Item(pydantic.BaseModel):
|
|
34 |
def index() -> FileResponse:
|
35 |
return FileResponse(path="/app/static/index.html", media_type="text/html")
|
36 |
|
37 |
-
@app.
|
38 |
def predict(item: Item):
|
39 |
|
40 |
sequence = item.sequence
|
|
|
34 |
def index() -> FileResponse:
|
35 |
return FileResponse(path="/app/static/index.html", media_type="text/html")
|
36 |
|
37 |
+
@app.post("/unikp-predict")
|
38 |
def predict(item: Item):
|
39 |
|
40 |
sequence = item.sequence
|