Spaces:
Running
Running
Commit
•
7256938
1
Parent(s):
53801f5
Update app.py
Browse files
app.py
CHANGED
@@ -359,16 +359,17 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
|
|
359 |
def bulk_upload(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuthToken, urls, link_civit=False):
|
360 |
urls = urls.split("\n")
|
361 |
print(urls)
|
|
|
362 |
for url in urls:
|
363 |
-
print(url)
|
364 |
if(url):
|
365 |
try:
|
366 |
upload_result = upload_civit_to_hf(profile, oauth_token, url, link_civit)
|
367 |
-
|
368 |
-
yield upload_result
|
369 |
except Exception as e:
|
370 |
print(e)
|
371 |
gr.Warning(f"Error uploading the model {link_civit}")
|
|
|
|
|
372 |
css = '''
|
373 |
#login {
|
374 |
width: 100% !important;
|
|
|
359 |
def bulk_upload(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuthToken, urls, link_civit=False):
|
360 |
urls = urls.split("\n")
|
361 |
print(urls)
|
362 |
+
upload_results = ""
|
363 |
for url in urls:
|
|
|
364 |
if(url):
|
365 |
try:
|
366 |
upload_result = upload_civit_to_hf(profile, oauth_token, url, link_civit)
|
367 |
+
upload_results += upload_result+"\n"
|
|
|
368 |
except Exception as e:
|
369 |
print(e)
|
370 |
gr.Warning(f"Error uploading the model {link_civit}")
|
371 |
+
return upload_results
|
372 |
+
|
373 |
css = '''
|
374 |
#login {
|
375 |
width: 100% !important;
|