File size: 720 Bytes
5335527
e9f5906
 
b798e60
e9f5906
 
 
 
 
 
 
f7cf843
e9f5906
5335527
f3ccd96
b798e60
f3ccd96
 
b798e60
a119095
5335527
 
b798e60
5335527
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import gradio as gr
import os 
import sys
from huggingface_hub import scan_cache_dir
os.system("mkdir hotshotxl")
os.system("cd hotshotxl")
#os.system("mkdir -p datasets/DeepFashion")
#os.system("mkdir -p output/DeepFashion/ckpt/pretrained")
os.system("git clone https://github.com/hotshotco/Hotshot-XL.git")
os.system("cd Hotshot-XL")
sys.path.append("Hotshot-XL")
os.system("pip install -r requirements.txt")
import inference as inf
def infer(inp):

    #hf_cache_info = scan_cache_dir()
    
    #output = inf("a cat running through a field")
    return scan_cache_dir()

with gr.Blocks() as app:
    prompt = gr.Textbox()
    gif_out = gr.JSON()
    btn = gr.Button()
    btn.click(infer,prompt,gif_out)
app.launch()