ciyidogan commited on
Commit
b5c1d21
·
verified ·
1 Parent(s): 584aa58

Update fine_tune_inference_test.py

Browse files
Files changed (1) hide show
  1. fine_tune_inference_test.py +5 -1
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("/", response_class=HTMLResponse)
 
 
 
 
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>