Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
def infer(inp):
|
6 |
-
output =
|
7 |
return output
|
8 |
|
9 |
with gr.Blocks() as app:
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
+
import sys
|
4 |
+
os.system("mkdir hotshotxl")
|
5 |
+
os.system("cd hotshotxl")
|
6 |
+
#os.system("mkdir -p datasets/DeepFashion")
|
7 |
+
#os.system("mkdir -p output/DeepFashion/ckpt/pretrained")
|
8 |
+
os.system("git clone https://github.com/hotshotco/Hotshot-XL.git")
|
9 |
+
os.system("cd Hotshot-XL")
|
10 |
+
os.system("pip install -r requirements.txt")
|
11 |
+
sys.path.append("Hotshot-XL")
|
12 |
+
import inference as inf
|
13 |
def infer(inp):
|
14 |
+
output = inf("a cat running through a field")
|
15 |
return output
|
16 |
|
17 |
with gr.Blocks() as app:
|