mgreg555 commited on
Commit
822f644
·
verified ·
1 Parent(s): cdf1ed1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -97,11 +97,12 @@ def write_to_file(file_name, value):
97
  # Write to the file
98
  with open(file_name, 'a', encoding='utf-8') as file:
99
  file.write(find_previous_question(value) + ';' + str(value) + '\n')
100
-
 
101
  # Upload the file using its path
102
  api.upload_file(
103
  path_or_fileobj=file_name, # Use the file path instead of the file object
104
- repo_id="mgreg555/docs_chat",
105
  repo_type="space",
106
  path_in_repo=file_name # Ensure this matches the file name if you want to keep the same name in the repo
107
  )
 
97
  # Write to the file
98
  with open(file_name, 'a', encoding='utf-8') as file:
99
  file.write(find_previous_question(value) + ';' + str(value) + '\n')
100
+
101
+ print(file_name)
102
  # Upload the file using its path
103
  api.upload_file(
104
  path_or_fileobj=file_name, # Use the file path instead of the file object
105
+ repo_id="/mgreg555/docs_chat",
106
  repo_type="space",
107
  path_in_repo=file_name # Ensure this matches the file name if you want to keep the same name in the repo
108
  )