Spaces:
Sleeping
Sleeping
def preprocess_text(text):
Browse files
app.py
CHANGED
@@ -418,7 +418,6 @@ def get_video_id_summary(video_id, df_string):
|
|
418 |
exists, file_id = check_file_exists(service, folder_id, file_name)
|
419 |
if not exists:
|
420 |
summary = generate_summarise(df_string)
|
421 |
-
# preprocess_text to json value acceptable
|
422 |
processed_summary = preprocess_text(summary)
|
423 |
summary_json = {"summary": processed_summary}
|
424 |
summary_text = json.dumps(summary_json, ensure_ascii=False, indent=2)
|
|
|
418 |
exists, file_id = check_file_exists(service, folder_id, file_name)
|
419 |
if not exists:
|
420 |
summary = generate_summarise(df_string)
|
|
|
421 |
processed_summary = preprocess_text(summary)
|
422 |
summary_json = {"summary": processed_summary}
|
423 |
summary_text = json.dumps(summary_json, ensure_ascii=False, indent=2)
|