Upload app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,8 @@ import time
|
|
| 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
|
|
|
|
| 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 |
+
from huggingface_hub import login, hf_hub_download, HfFileSystem, ModelCard, snapshot_download
|
| 23 |
+
|
| 24 |
huggingface-cli login
|
| 25 |
|
| 26 |
# Load LoRAs from JSON file
|