File size: 384 Bytes
450f5e6
 
 
 
 
b137afa
 
450f5e6
 
 
 
b137afa
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import sys
sys.path.append('/home/user/app/InstDrag')

import os
import torch
import gradio as gr

from huggingface_hub import snapshot_download
os.makedirs("checkpoints", exist_ok=True)
snapshot_download("alex4727/InstantDrag", local_dir="./checkpoints")

def greet(name):
    return "Hello " + name + "!!"

demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()