TheLastBen
commited on
Commit
•
deb4d74
1
Parent(s):
75375cd
Upload mainpaperspaceA1111.py
Browse files
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -155,7 +155,7 @@ def repo():
|
|
155 |
def mdls(Original_Model_Version, Path_to_MODEL, MODEL_LINK, Temporary_Storage):
|
156 |
|
157 |
import gdown
|
158 |
-
|
159 |
|
160 |
src=getsrc(MODEL_LINK)
|
161 |
|
@@ -442,6 +442,9 @@ def getsrc(url):
|
|
442 |
|
443 |
|
444 |
def get_name(url, gdrive):
|
|
|
|
|
|
|
445 |
if not gdrive:
|
446 |
response = requests.get(url, allow_redirects=False)
|
447 |
if "Location" in response.headers:
|
|
|
155 |
def mdls(Original_Model_Version, Path_to_MODEL, MODEL_LINK, Temporary_Storage):
|
156 |
|
157 |
import gdown
|
158 |
+
|
159 |
|
160 |
src=getsrc(MODEL_LINK)
|
161 |
|
|
|
442 |
|
443 |
|
444 |
def get_name(url, gdrive):
|
445 |
+
|
446 |
+
from gdown.download import get_url_from_gdrive_confirmation
|
447 |
+
|
448 |
if not gdrive:
|
449 |
response = requests.get(url, allow_redirects=False)
|
450 |
if "Location" in response.headers:
|