Topallaj Denis commited on
Commit
345cd83
·
1 Parent(s): 34b109a

test if general code works

Browse files
Files changed (1) hide show
  1. main.py +11 -6
main.py CHANGED
@@ -35,12 +35,9 @@ app.mount("/", StaticFiles(directory="static", html=True), name="static")
35
 
36
 
37
  @app.get("/")
38
- def home() -> FileResponse:
39
- return FileResponse(path="/app/static/index.html", media_type="text/html")
40
-
41
- @app.post("/predict")
42
- def predict_UniKP_values(sequence: str, smiles: str) -> Dict[str, float]:
43
-
44
  endpointHandler = EndpointHandler()
45
  result = endpointHandler.predict({
46
  "inputs": {
@@ -49,6 +46,14 @@ def predict_UniKP_values(sequence: str, smiles: str) -> Dict[str, float]:
49
  }
50
  })
51
 
 
 
 
 
 
 
 
 
52
  return result
53
 
54
 
 
35
 
36
 
37
  @app.get("/")
38
+ def home():
39
+ smiles = "CC1=CC(=C(C=C1)C(=O)O)O"
40
+ sequence = "MGLSDGEWQLVLNVWGKVEADIPGHGQEVLIRLFKGHPETLEKFDKFKHLKSEDEMKASEDLKKAGVTVLTALGAILKKKGHHEAELKPLAQSHATKHKIPIKYLEFISEAIIHVLHSRHPGNFGADAQGAMNKALELFRKDIAAKYKELGYQG"
 
 
 
41
  endpointHandler = EndpointHandler()
42
  result = endpointHandler.predict({
43
  "inputs": {
 
46
  }
47
  })
48
 
49
+ return result
50
+ # return FileResponse(path="/app/static/index.html", media_type="text/html")
51
+
52
+ @app.post("/predict")
53
+ def predict_UniKP_values(sequence: str, smiles: str) -> Dict[str, float]:
54
+
55
+
56
+
57
  return result
58
 
59