cspocketindia commited on
Commit
282953b
1 Parent(s): f216bc1

Update to git methods

Browse files
Files changed (1) hide show
  1. gradio_app.py +4 -2
gradio_app.py CHANGED
@@ -39,8 +39,10 @@ def log_record(vals):
39
 
40
  with open(log_file, "r", encoding="utf-8") as csvfile:
41
  line_count = len([None for _ in csv.reader(csvfile)]) - 1
42
-
43
- repo.push_to_hub(commit_message=f"Logged sample #{line_count}")
 
 
44
 
45
 
46
  def predict(sentence):
 
39
 
40
  with open(log_file, "r", encoding="utf-8") as csvfile:
41
  line_count = len([None for _ in csv.reader(csvfile)]) - 1
42
+ repo.git_add()
43
+ repo.git_commit(f"Logged sample #{line_count}")
44
+ repo.git_push()
45
+ # repo.push_to_hub(commit_message=f"Logged sample #{line_count}")
46
 
47
 
48
  def predict(sentence):