Spaces:
Sleeping
Sleeping
Update api/syllabus_utils.py
Browse files- api/syllabus_utils.py +3 -0
api/syllabus_utils.py
CHANGED
|
@@ -5,6 +5,8 @@
|
|
| 5 |
- 提取课程大纲 topics
|
| 6 |
"""
|
| 7 |
|
|
|
|
|
|
|
| 8 |
import os
|
| 9 |
from typing import List
|
| 10 |
|
|
@@ -72,6 +74,7 @@ def parse_pptx_slides(path: str) -> List[str]:
|
|
| 72 |
return slide_texts
|
| 73 |
|
| 74 |
|
|
|
|
| 75 |
def extract_course_topics_from_file(file_obj, doc_type: str) -> List[str]:
|
| 76 |
"""
|
| 77 |
根据上传文件和 doc_type 提取课程大纲 topics。
|
|
|
|
| 5 |
- 提取课程大纲 topics
|
| 6 |
"""
|
| 7 |
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
import os
|
| 11 |
from typing import List
|
| 12 |
|
|
|
|
| 74 |
return slide_texts
|
| 75 |
|
| 76 |
|
| 77 |
+
|
| 78 |
def extract_course_topics_from_file(file_obj, doc_type: str) -> List[str]:
|
| 79 |
"""
|
| 80 |
根据上传文件和 doc_type 提取课程大纲 topics。
|