smarques commited on
Commit
450f5e6
·
1 Parent(s): fd0db3a
Files changed (3) hide show
  1. .gitignore +1 -0
  2. InstantDrag +0 -1
  3. 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