Spaces:
Sleeping
Sleeping
wip
Browse files- .gitignore +1 -0
- InstantDrag +0 -1
- app.py +9 -0
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
checkpoints
|
InstantDrag
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
Subproject commit e712eac8e070873a33835ffa49ed0aa6e8cf271f
|
|
|
|
|
|
app.py
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
sys.path.append('/home/user/app/InstDrag')
|
| 3 |
+
|
| 4 |
+
import os
|
| 5 |
+
import torch
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
+
from huggingface_hub import snapshot_download
|
| 9 |
+
os.makedirs("checkpoints", exist_ok=True)
|
| 10 |
+
snapshot_download("alex4727/InstantDrag", local_dir="./checkpoints")
|
| 11 |
+
|
| 12 |
def greet(name):
|
| 13 |
return "Hello " + name + "!!"
|
| 14 |
|