Update sora_gen.py
Browse files- sora_gen.py +2 -2
sora_gen.py
CHANGED
|
@@ -119,7 +119,7 @@ class SoraImageGenerator:
|
|
| 119 |
"height": height,
|
| 120 |
"n_frames": 1,
|
| 121 |
"inpaint_items": [],
|
| 122 |
-
"user": "
|
| 123 |
}
|
| 124 |
|
| 125 |
try:
|
|
@@ -233,7 +233,7 @@ class SoraImageGenerator:
|
|
| 233 |
"n_frames": 1,
|
| 234 |
"width": width, # 可选,如果为None,API可能会基于输入调整
|
| 235 |
"height": height, # 可选
|
| 236 |
-
"user": "
|
| 237 |
}
|
| 238 |
# 只有当width和height都提供了值时才添加到payload中
|
| 239 |
if width is not None:
|
|
|
|
| 119 |
"height": height,
|
| 120 |
"n_frames": 1,
|
| 121 |
"inpaint_items": [],
|
| 122 |
+
"user": "gally"
|
| 123 |
}
|
| 124 |
|
| 125 |
try:
|
|
|
|
| 233 |
"n_frames": 1,
|
| 234 |
"width": width, # 可选,如果为None,API可能会基于输入调整
|
| 235 |
"height": height, # 可选
|
| 236 |
+
"user": "gally" # 添加这一行,设置一个用户名
|
| 237 |
}
|
| 238 |
# 只有当width和height都提供了值时才添加到payload中
|
| 239 |
if width is not None:
|