kayte0342 commited on
Commit
c5b9b4d
·
verified ·
1 Parent(s): c4f9bf4

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,4 +1,3 @@
1
- pip install -U "huggingface_hub[cli]"
2
  import os
3
  import gradio as gr
4
  import json
@@ -15,6 +14,11 @@ import random
15
  import time
16
 
17
 
 
 
 
 
 
18
  huggingface-cli login
19
 
20
  # Load LoRAs from JSON file
 
 
1
  import os
2
  import gradio as gr
3
  import json
 
14
  import time
15
 
16
 
17
+ # --- Install huggingface_hub[cli] ---
18
+ # This will ensure that the CLI extras are installed.
19
+ # (If the package is already installed, pip will simply verify the installation.)
20
+ subprocess.run("pip install huggingface_hub[cli]", shell=True, check=True)
21
+
22
  huggingface-cli login
23
 
24
  # Load LoRAs from JSON file