MitchellKil commited on
Commit
a801e20
·
verified ·
1 Parent(s): a16bd81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,12 +89,12 @@ def save_feedback(data: Feedback):
89
 
90
  lines.append(json.dumps(feedbackText) + "\n") # append
91
 
92
- temp_path = "feedbackTemp.jsonl" # create temp file
93
  with open(temp_path, "w", encoding="utf-8") as f:
94
  f.writelines(lines)
95
 
96
  api.upload_file( # reupload full file
97
- path_or_fileobj=temp_path,
98
  path_in_repo="feedback.jsonl",
99
  repo_id=dataset,
100
  repo_type="feedbackFile",
 
89
 
90
  lines.append(json.dumps(feedbackText) + "\n") # append
91
 
92
+ tempPath = "feedbackTemp.jsonl" # create temp file
93
  with open(temp_path, "w", encoding="utf-8") as f:
94
  f.writelines(lines)
95
 
96
  api.upload_file( # reupload full file
97
+ path_or_fileobj=tempPath,
98
  path_in_repo="feedback.jsonl",
99
  repo_id=dataset,
100
  repo_type="feedbackFile",