Update fine_tune_inference_test.py
Browse files
fine_tune_inference_test.py
CHANGED
@@ -34,7 +34,11 @@ pipe = None # global text-generation pipeline
|
|
34 |
class Message(BaseModel):
|
35 |
user_input: str
|
36 |
|
37 |
-
@app.get("/"
|
|
|
|
|
|
|
|
|
38 |
def root():
|
39 |
return """
|
40 |
<html>
|
|
|
34 |
class Message(BaseModel):
|
35 |
user_input: str
|
36 |
|
37 |
+
@app.get("/")
|
38 |
+
def health():
|
39 |
+
return JSONResponse(content={"status": "ok"})
|
40 |
+
|
41 |
+
@app.get("/start", response_class=HTMLResponse)
|
42 |
def root():
|
43 |
return """
|
44 |
<html>
|