tensorgirl commited on
Commit
f04865a
·
verified ·
1 Parent(s): 0010700

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -3
main.py CHANGED
@@ -20,6 +20,10 @@ async def root():
20
  return {"Code Review Automation":"Version 1.0 'First Draft'"}
21
 
22
  @app.post("/AutomateReview/")
23
- async def predict(item: Item):
24
- result = await predict(item)
25
- return {"answer":result}
 
 
 
 
 
20
  return {"Code Review Automation":"Version 1.0 'First Draft'"}
21
 
22
  @app.post("/AutomateReview/")
23
+ def predict(item: Item):
24
+ result = predict(item)
25
+ return {"answer":result}
26
+
27
+ #async def predict(item: Item):
28
+ # result = await predict(item)
29
+ # return {"answer":result}