Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -389,14 +389,14 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
|
|
389 |
return f'''# Model uploaded to 🤗!
|
390 |
## Access it here [{user_repo_id}](https://huggingface.co/{user_repo_id}) '''
|
391 |
|
392 |
-
def bulk_upload(profile: Optional[gr.OAuthProfile], urls, link_civit=False, progress=gr.Progress(track_tqdm=True)):
|
393 |
urls = urls.split("\n")
|
394 |
print(urls)
|
395 |
for url in urls:
|
396 |
print(url)
|
397 |
if(url):
|
398 |
try:
|
399 |
-
upload_result = upload_civit_to_hf(url
|
400 |
gr.Warning(f"Model {link_civit} uploaded")
|
401 |
except Exception as e:
|
402 |
print(e)
|
|
|
389 |
return f'''# Model uploaded to 🤗!
|
390 |
## Access it here [{user_repo_id}](https://huggingface.co/{user_repo_id}) '''
|
391 |
|
392 |
+
def bulk_upload(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuthToken, urls, link_civit=False, progress=gr.Progress(track_tqdm=True)):
|
393 |
urls = urls.split("\n")
|
394 |
print(urls)
|
395 |
for url in urls:
|
396 |
print(url)
|
397 |
if(url):
|
398 |
try:
|
399 |
+
upload_result = upload_civit_to_hf(profile, oauth_token, url, link_civit)
|
400 |
gr.Warning(f"Model {link_civit} uploaded")
|
401 |
except Exception as e:
|
402 |
print(e)
|