Spaces:
Runtime error
Runtime error
Update cli.py
Browse files- t5s/cli.py +6 -0
t5s/cli.py
CHANGED
|
@@ -37,6 +37,12 @@ class Run(object):
|
|
| 37 |
arguments = self.arguments
|
| 38 |
print(f"arguments passed: {arguments['command']}")
|
| 39 |
# os.chdir('../')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
retval = os.getcwd()
|
| 41 |
print(retval)
|
| 42 |
list_files = subprocess.run(["make", arguments["command"]])
|
|
|
|
| 37 |
arguments = self.arguments
|
| 38 |
print(f"arguments passed: {arguments['command']}")
|
| 39 |
# os.chdir('../')
|
| 40 |
+
if arguments['command'] == "clone":
|
| 41 |
+
retval = os.getcwd()
|
| 42 |
+
print(retval)
|
| 43 |
+
list_files = subprocess.run(["git", "clone", "https://dagshub.com/gagan3012/summarization.git"])
|
| 44 |
+
os.chdir('./summarization/')
|
| 45 |
+
return list_files.returncode
|
| 46 |
retval = os.getcwd()
|
| 47 |
print(retval)
|
| 48 |
list_files = subprocess.run(["make", arguments["command"]])
|