multimodalart HF staff commited on
Commit
d6bfdd6
1 Parent(s): 9329734

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -315,7 +315,7 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
315
  create_repo(repo_id=user_repo_id, private=False, exist_ok=True, token=oauth_token.token)
316
  print("Uploading repo...")
317
 
318
- upload_folder(
319
  folder_path=folder,
320
  repo_id=user_repo_id,
321
  repo_type="model",
@@ -367,11 +367,6 @@ css = '''
367
  width: 100% !important;
368
  margin: 0 auto;
369
  }
370
- #logout {
371
- width: 100% !important;
372
- margin-top: 4em;
373
- display: none
374
- }
375
  #disabled_upload{
376
  opacity: 0.5;
377
  pointer-events:none;
@@ -417,7 +412,7 @@ By uploading your LoRAs to Hugging Face you get diffusers compatibility, a free
417
  try_again_button.click(fn=check_civit_link, inputs=[submit_source_civit], outputs=[instructions, submit_button_civit, try_again_button, submit_button_civit], queue=False)
418
  submit_button_civit.click(fn=show_output, inputs=[], outputs=[output]).then(fn=upload_civit_to_hf, inputs=[submit_source_civit, link_civit], outputs=[output], queue=False)
419
  bulk_button.click(fn=show_output, inputs=[], outputs=[output]).then(fn=bulk_upload, inputs=[submit_bulk_civit, link_civit], outputs=[output], queue=False)
420
- gr.LogoutButton(elem_id="logout")
421
 
422
  demo.queue()
423
  demo.launch()
 
315
  create_repo(repo_id=user_repo_id, private=False, exist_ok=True, token=oauth_token.token)
316
  print("Uploading repo...")
317
 
318
+ upload_folder(
319
  folder_path=folder,
320
  repo_id=user_repo_id,
321
  repo_type="model",
 
367
  width: 100% !important;
368
  margin: 0 auto;
369
  }
 
 
 
 
 
370
  #disabled_upload{
371
  opacity: 0.5;
372
  pointer-events:none;
 
412
  try_again_button.click(fn=check_civit_link, inputs=[submit_source_civit], outputs=[instructions, submit_button_civit, try_again_button, submit_button_civit], queue=False)
413
  submit_button_civit.click(fn=show_output, inputs=[], outputs=[output]).then(fn=upload_civit_to_hf, inputs=[submit_source_civit, link_civit], outputs=[output], queue=False)
414
  bulk_button.click(fn=show_output, inputs=[], outputs=[output]).then(fn=bulk_upload, inputs=[submit_bulk_civit, link_civit], outputs=[output], queue=False)
415
+ #gr.LogoutButton(elem_id="logout")
416
 
417
  demo.queue()
418
  demo.launch()