File size: 1,145 Bytes
925affe
 
a564ad8
 
 
 
8e0448f
 
a564ad8
8e0448f
eaf1bb9
925affe
eaf1bb9
8e0448f
 
eaf1bb9
7327694
 
33b2b35
925affe
a564ad8
a66c139
a564ad8
a66c139
925affe
33b2b35
925affe
 
 
 
33b2b35
925affe
 
 
 
7327694
 
925affe
 
7327694
925affe
 
7327694
925affe
 
 
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
import gradio as gr

import git

git.Git("clipseg/").clone("https://github.com/ThereforeGames/txt2mask.git")

from zipfile import ZipFile
zf = ZipFile('clipseg-master.zip', 'r')
zf.extractall('clipseg/')
zf.close()



#download_and_extract_zip_file()
#clone_github_repository()

#with gr.Blocks() as demo:
#demo.launch()

#import time
#import git

#git.Git("clipseg/").clone("https://github.com/ThereforeGames/txt2mask.git")

#from git import RemoteProgress

#class CloneProgress(RemoteProgress):
#    def update(self, op_code, cur_count, max_count=None, message=''):
#        if message:
#            print(message)

#git_root='home/user/app/clipseg1'
#print('Cloning into %s' % git_root)
#git.Repo.clone_from('https://github.com/ThereforeGames/txt2mask.git', git_root, 
#        branch='master', progress=CloneProgress())

#-------------
#import sys
#import os

#path  = "home/user/app/clipseg"
#clone = "git clone https://github.com/ThereforeGames/txt2mask.git" 

#os.system("sshpass -p your_password ssh user_name@your_localhost")
#os.chdir(path) # Specifying the path where the cloned project needs to be copied
#os.system(clone) # Cloning