Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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 |
-
|
24 |
-
result =
|
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}
|