nightfury commited on
Commit
7327694
1 Parent(s): 33b2b35

Update app_t.py

Browse files
Files changed (1) hide show
  1. app_t.py +14 -4
app_t.py CHANGED
@@ -7,9 +7,8 @@ import gradio as gr
7
  download_and_extract_zip_file()
8
  clone_github_repository()
9
 
10
- with gr.Blocks() as demo:
11
-
12
- demo.launch()
13
 
14
  import time
15
  import git
@@ -21,5 +20,16 @@ class CloneProgress(RemoteProgress):
21
  print(message)
22
 
23
  print('Cloning into %s' % git_root)
24
- git.Repo.clone_from('https://github.com/your-repo', '/your/repo/dir',
25
  branch='master', progress=CloneProgress())
 
 
 
 
 
 
 
 
 
 
 
 
7
  download_and_extract_zip_file()
8
  clone_github_repository()
9
 
10
+ #with gr.Blocks() as demo:
11
+ #demo.launch()
 
12
 
13
  import time
14
  import git
 
20
  print(message)
21
 
22
  print('Cloning into %s' % git_root)
23
+ git.Repo.clone_from('https://github.com/ThereforeGames/txt2mask/repositories/clipseg.git', 'home/user/app/clipseg',
24
  branch='master', progress=CloneProgress())
25
+
26
+ #-------------
27
+ import sys
28
+ import os
29
+
30
+ path = "home/user/app/clipseg"
31
+ clone = "git clone https://github.com/ThereforeGames/txt2mask.git"
32
+
33
+ os.system("sshpass -p your_password ssh user_name@your_localhost")
34
+ os.chdir(path) # Specifying the path where the cloned project needs to be copied
35
+ os.system(clone) # Cloning