sheonhan commited on
Commit
14b974b
·
1 Parent(s): 35e2359

restore prod setting

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import subprocess
2
 
3
- # commands = 'pip uninstall gradio -y; echo "pwd is: $(pwd)"; pip install ./gradio-12.34.56.tar.gz'
4
- # subprocess.run(commands, shell=True)
5
 
6
  import json
7
  import os
@@ -84,13 +84,13 @@ if HF_TOKEN:
84
  pass
85
 
86
  print("Pulling repo...")
87
- # repo = Repository(
88
- # local_dir="./data/",
89
- # clone_from=REPO_ID,
90
- # use_auth_token=HF_TOKEN,
91
- # repo_type="dataset",
92
- # )
93
- # repo.git_pull()
94
 
95
  system_message = ""
96
 
 
1
  import subprocess
2
 
3
+ commands = 'pip uninstall gradio -y; echo "pwd is: $(pwd)"; pip install ./gradio-12.34.56.tar.gz'
4
+ subprocess.run(commands, shell=True)
5
 
6
  import json
7
  import os
 
84
  pass
85
 
86
  print("Pulling repo...")
87
+ repo = Repository(
88
+ local_dir="./data/",
89
+ clone_from=REPO_ID,
90
+ use_auth_token=HF_TOKEN,
91
+ repo_type="dataset",
92
+ )
93
+ repo.git_pull()
94
 
95
  system_message = ""
96