InstantDrag / app.py
smarques's picture
wip
450f5e6
raw
history blame
384 Bytes
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()