Marroco93 commited on
Commit
9530b69
1 Parent(s): 0f9cd45
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -138,6 +138,7 @@ classifier = pipeline("text-classification", model="distilbert-base-uncased-fine
138
  def classify_segments(segments):
139
  return [classifier(segment) for segment in segments]
140
 
 
141
  @app.post("/summarize")
142
  async def summarize(request: TextRequest):
143
  try:
 
138
  def classify_segments(segments):
139
  return [classifier(segment) for segment in segments]
140
 
141
+
142
  @app.post("/summarize")
143
  async def summarize(request: TextRequest):
144
  try: