Update voice_create.py
Browse files- voice_create.py +1 -2
voice_create.py
CHANGED
|
@@ -21,8 +21,7 @@ def text_to_speech(input_file, selected_option):
|
|
| 21 |
# script列が文字列か確認し、文字列でない場合は空文字に置き換える
|
| 22 |
script = row.get('script', '')
|
| 23 |
print("原稿",script)
|
| 24 |
-
if script
|
| 25 |
-
# scriptが空の場合はスキップ
|
| 26 |
continue
|
| 27 |
if not isinstance(script, str):
|
| 28 |
script = str(script)
|
|
|
|
| 21 |
# script列が文字列か確認し、文字列でない場合は空文字に置き換える
|
| 22 |
script = row.get('script', '')
|
| 23 |
print("原稿",script)
|
| 24 |
+
if pd.isna(script):
|
|
|
|
| 25 |
continue
|
| 26 |
if not isinstance(script, str):
|
| 27 |
script = str(script)
|