|
@@ -98,7 +98,7 @@ class VideoIdentifier:
|
|
# 尝试下载视频
|
|
# 尝试下载视频
|
|
for attempt in range(3):
|
|
for attempt in range(3):
|
|
try:
|
|
try:
|
|
- response = requests.get(url=video_url, timeout=60)
|
|
|
|
|
|
+ response = requests.get(url=video_url, timeout=600)
|
|
if response.status_code == 200:
|
|
if response.status_code == 200:
|
|
try:
|
|
try:
|
|
with open(file_path, 'wb') as f:
|
|
with open(file_path, 'wb') as f:
|
|
@@ -415,7 +415,7 @@ class VideoIdentifier:
|
|
)
|
|
)
|
|
response = model.generate_content(
|
|
response = model.generate_content(
|
|
contents=[video_file, system_prompt],
|
|
contents=[video_file, system_prompt],
|
|
- request_options={'timeout': 240}
|
|
|
|
|
|
+ request_options={'timeout': 2000}
|
|
)
|
|
)
|
|
|
|
|
|
if hasattr(response, '_error') and response._error:
|
|
if hasattr(response, '_error') and response._error:
|