macrdel commited on
Commit
35b4979
1 Parent(s): 1dd39e4

update workflow

Browse files
Files changed (1) hide show
  1. app/api.py +1 -1
app/api.py CHANGED
@@ -43,7 +43,7 @@ def get_summarize():
43
  data = pd.read_csv(f"{config.DATA_FILE}")
44
  return pipeline_summarize(data['text_comment'], headers, SUM_API_URL)
45
 
46
- @app.lifespan("startup")
47
  def startup_event():
48
  start_http_server(8000)
49
 
 
43
  data = pd.read_csv(f"{config.DATA_FILE}")
44
  return pipeline_summarize(data['text_comment'], headers, SUM_API_URL)
45
 
46
+ @app.on_event("startup")
47
  def startup_event():
48
  start_http_server(8000)
49