Skip to content

Commit 9ed28e3

Browse files
authored
Merge pull request #36 from trustyboy/master
修复colab模型框架加载模块卡住问题
2 parents 425147a + 4e3032f commit 9ed28e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LanguageNetwork/GPT2/scripts/gdown.pl

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
my $TEMP_FILENAME='trained_models/model.ckpt-280000.data-00000-of-00001';
2727

2828
if ($URL=~m#^https?://drive.google.com/file/d/([^/]+)#) {
29-
$URL="https://docs.google.com/uc?id=$1&export=download";
29+
$URL="https://docs.google.com/uc?id=$1&export=download&confirm=t";
3030
}
3131
elsif ($URL=~m#^https?://drive.google.com/open\?id=([^/]+)#) {
32-
$URL="https://docs.google.com/uc?id=$1&export=download";
32+
$URL="https://docs.google.com/uc?id=$1&export=download&confirm=t";
3333
}
3434

3535
execute_command();
@@ -99,4 +99,4 @@ ()
9999
die "\nDownloading complete\n\n";
100100
}
101101
return 1;
102-
}
102+
}

0 commit comments

Comments
 (0)