Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -9,9 +9,9 @@ os.environ['TRANSFORMERS_CACHE'] = '/blabla/cache/'
|
|
| 9 |
app = FastAPI()
|
| 10 |
|
| 11 |
@app.get("/")
|
| 12 |
-
def root():
|
| 13 |
return {"Code Review Automation":"Version 1.0 'First Draft'"}
|
| 14 |
|
| 15 |
@app.post("/AutomateReview/")
|
| 16 |
-
def predict(input_json: str):
|
| 17 |
return predict(input_json)
|
|
|
|
| 9 |
app = FastAPI()
|
| 10 |
|
| 11 |
@app.get("/")
|
| 12 |
+
async def root():
|
| 13 |
return {"Code Review Automation":"Version 1.0 'First Draft'"}
|
| 14 |
|
| 15 |
@app.post("/AutomateReview/")
|
| 16 |
+
async def predict(input_json: str):
|
| 17 |
return predict(input_json)
|