Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,13 @@ def get_text(ppt_file):
|
|
| 23 |
|
| 24 |
|
| 25 |
result = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
try:
|
| 27 |
-
presentation = Presentation(ppt_file)
|
| 28 |
|
| 29 |
for slide_idx, slide in enumerate(presentation.slides): # 슬라이드 마다 읽기
|
| 30 |
string = ''
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
result = []
|
| 26 |
+
|
| 27 |
+
presentation = Presentation(ppt_file)
|
| 28 |
+
|
| 29 |
+
if len(presentation.slides) > 5:
|
| 30 |
+
raise Exception("Max slide length is 5. Please follow guideline.")
|
| 31 |
+
|
| 32 |
try:
|
|
|
|
| 33 |
|
| 34 |
for slide_idx, slide in enumerate(presentation.slides): # 슬라이드 마다 읽기
|
| 35 |
string = ''
|