罗俊辉 před 1 rokem
rodič
revize
57e0221f80
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      applications/pipeline.py

+ 1 - 1
applications/pipeline.py

@@ -129,4 +129,4 @@ def summary_articles(materials):
         response = json.loads(response.replace("\n", ""))
     except:
         response = json.loads(response.replace("'", '"'))
-    return response['title'], response['text']
+    return response['title'].replace("'", ""), response['text'].replace("'", '')