Spaces:
Runtime error
Runtime error
File size: 1,173 Bytes
4913d8e 22fa11a 4913d8e |
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
import gradio as gr
import os
import yaml
import huggingface_hub
huggingface_hub.hf_hub_download(
repo_id='yzd-v/DWPose',
filename='yolox_l.onnx',
local_dir='./models/DWPose',
local_dir_use_symlinks=False,
)
huggingface_hub.hf_hub_download(
repo_id='yzd-v/DWPose',
filename='dw-ll_ucoco_384.onnx',
local_dir='./models/DWPose',
local_dir_use_symlinks=False,
)
huggingface_hub.hf_hub_download(
repo_id='ixaac/MimicMotion',
filename='MimicMotion_1-1.pth',
local_dir='./models',
local_dir_use_symlinks=False,
)
def print_directory_contents(path):
for root, dirs, files in os.walk(path):
level = root.replace(path, '').count(os.sep)
indent = ' ' * 4 * (level)
print(f"{indent}{os.path.basename(root)}/")
subindent = ' ' * 4 * (level + 1)
for f in files:
print(f"{subindent}{f}")
# Path to the directory you want to print
directory_path = './models'
# Print the directory contents
print_directory_contents(directory_path)
def infer(text):
return text
demo = gr.Interface(
fn = infer,
inputs = [gr.Textbox()],
outputs = [gr.Textbox()]
)
demo.launch() |