khushwant04 commited on
Commit
e3edc10
1 Parent(s): 9700118

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -3
main.py CHANGED
@@ -1,3 +1,5 @@
1
- import os
2
- os.system("curl -L "https://huggingface.co/datasets/khushwant04/Research-Papers/resolve/main/research-papers.tar?download=true" -o research-papers.tar")
3
- os.system("tar -xf research-papers.tar")
 
 
 
1
+ import subprocess
2
+
3
+ # Use subprocess.run for better practice
4
+ subprocess.run(['curl', '-L', 'https://huggingface.co/datasets/khushwant04/Research-Papers/resolve/main/research-papers.tar?download=true', '-o', 'research-papers.tar'], check=True)
5
+ subprocess.run(['tar', '-xf', 'research-papers.tar'], check=True)