Spaces:
Runtime error
Runtime error
File size: 671 Bytes
ae3b1a9 eaf1bb9 33b2b35 |
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 zipfile
with zipfile.ZipFile("https://huggingface.co/spaces/nightfury/SD-InPainting/blob/main/clipseg-master.zip", 'r') as zip_ref:
zip_ref.extractall("home/user/app/")
import gradio as gr
download_and_extract_zip_file()
clone_github_repository()
with gr.Blocks() as demo:
demo.launch()
import time
import git
from git import RemoteProgress
class CloneProgress(RemoteProgress):
def update(self, op_code, cur_count, max_count=None, message=''):
if message:
print(message)
print('Cloning into %s' % git_root)
git.Repo.clone_from('https://github.com/your-repo', '/your/repo/dir',
branch='master', progress=CloneProgress())
|